-->

HTML legend Tag

HTML <legend> tag

HTML <legend> Tag


HTML legend Tag: 

This is a double tag. <legend> This is the beginning tag and </legend>  this is the closing tag. This <legend> element defines a caption for the HTML <fieldset> tag. This tag using for making a caption for <fieldset> element.




<legend>=caption.
Copy this code and past your page.




Example:

Result:

Personalia: Name:
Email Address:
Date of birth:




Support Browser

HTML <legend> tag HTML <legend> Tag
Browser
HTML <legend> Tag
Google 
 Chrome  
HTML <legend> Tag
Internet
Explorer
HTML <legend> Tag
Firefox
HTML <legend> Tag
Opera  
HTML <legend> Tag
 Safari   
<legend>
YesYes Yes Yes  Yes




  • Html Version Differenc: Differences Between HTML 5 and HTML 4.01. 

In HTML5 The align attribute is not supported.



If you want to make a caption for <fieldset> using HTML code, Use HTML<legend> element.

1. What is the <legend> tag ?

2. What is the using for <legend> tag ?

3. What is the definition of <legend> tag ?

4. What is the <legend> tag mean ?

5. How can you make a caption for <fieldset> element on your page ?


Facebook Comments

Follow by Email