HTML <legend> tag
HTML <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.
Following are some specifications about the HTML <legend> tag
ExampleTest it Now
The <legend > tag supports the global attributes in HTML
The <legend> tag supports the event attributes in HTML.