Tuesday, May 19, 2009

use of legend tag.


Definition and Usage.


The <legend> tag defines a caption for the fieldset element.

Differences Between HTML and XHTML.


The align attribute was deprecated in HTML 4.01, and is not supported in XHTML 1.0 Strict DTD.

DTD: indicates in which DTD the attribute is allowed. S=Strict, T=Transitional, and F=Frameset.

Example.


<html>
<body>
<form>
<fieldset>
<legend>Personalia:</legend>
Name: <input type="text" size="30" /><br />
Email: <input type="text" size="30" /><br />
Date of birth: <input type="text" size="10" />
</fieldset>
</form>
</body>
</html>

No response to “use of legend tag.”

Post a Comment