HTML <legend> tagHTML <legend> tag is used to insert a title or caption to its parent element such as <fieldset>. The <legend> element must be the first child of <fieldset > element. By using <legend> tag with <form> elements, it is easy to understand the purpose of grouped form elements. SyntaxFollowing are some specifications about the HTML <legend> tag
ExampleTest it NowOutput: Attribute:Tag-specific attributes:
Global attribute:The <legend > tag supports the global attributes in HTML Event attribute:The <legend> tag supports the event attributes in HTML. Supporting Browsers
Next TopicHTML lists
|