Not very often used HTML tags

We all know <form> tag, as well as <ul><li> and so on… but how many of web developers used good old (and sometimes not just usefull, but VERY usefull) html tags in forms:




<optgroup label=”label”></optgroup>

in <select> ?

here are two good samples to use (taken from my new template engine version):

<form name="login" action="admin.php" method="post"  id="login">
	<input type="hidden" name="core_process" value="login"/>
		<legend>Your login:</legend>
		<label>Login</label><input type="text" value="" name="login"/><span class="core_req">required</span><br class="cleaner"/>
		<label>Password</label><input type="password" value="" name="password"/><span class="core_req">required</span><br class="cleaner"/>
		<label>&nbsp;</label><input type="submit" value="Login!"/><br class="cleaner"/>


    <select name="Counties">
    <optgroup label="England">
		<option>City of London</option>

Use it and mercifull god of W3C and HTML1.0 will (most likely) bless you!

Posted on February 16, 2009 at 14:54 by admin · Permalink
In: English, JavaScript, WEB2.0 · Tagged with: , ,

Leave a Reply