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:
<fieldset>
<legend>
and
<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"/>
<fieldset>
<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> </label><input type="submit" value="Login!"/><br class="cleaner"/>
</fieldset>
</form>
and
<select name="Counties">
<optgroup label="England">
<option>Bedfordshire</option>
<option>Berkshire</option>
<option>Bristol</option>
<option>Buckinghamshire</option>
<option>Cambridgeshire</option>
<option>Cheshire</option>
<option>City of London</option>
</select>
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: guru, html, w3c
In: English, JavaScript, WEB2.0 · Tagged with: guru, html, w3c