Home » Archive

Articles tagged with: HTML

JavaScript, web development »

[19 Oct 2010 | One Comment | ]

Multiple html buttons within single HTML label

When placing multiple html buttons within single html label, the following issue was found. Especially when using with the JavaScript functions for both buttons. The following code demonstrates the problem clearly. This example uses JQuery library
HTML code
< !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Div Drag/Resize Demo</title>
<script src="js/jquery.min.js"></script>
<script type="text/javascript">
 
$().ready(init);
function init(){
$(‘#txtinsert’).click(function(){alert("button1")});
$(‘#display’).click(function (){alert("button2")});
$(‘#display1′).click(function (){alert("button3")});
}
</script>
</head>
<body>
<label>
<input name="txtinsert" type="button" id="txtinsert" value="Insert Test" />
<input name="display" type="button" id="display" value="display" />
<input name="display1" type="button" id="display1" value="display1" />
</label>
</body>
</html>
 
In the …

JavaScript, web design, web development »

[29 Jul 2010 | 2 Comments | ]

There are lots of web designers and web developers are around the world. Most of the website designers are those who have directly started web designing once they have finished the cause as a freelancer.  Actually its a very good job to start with, but there are some problems in the websites that are designed by the fresh freelance designers. Some of them are listed below.

No proper HTML standards are maintained.
Most of the webpage titles are missing
Empty HTML tags are not properly handled
Web pages does not contain any meta tags such as …