Courses / HTML
5. Legend Element
The <legend> element represents a caption for a <fieldset> element.
1 min read Chapter 5 of 102
HTML
Legend Element
The `<legend>` element provides a caption for a `<fieldset>` element.
"I want to make my forms more accessible and organized."
The `<legend>` element defines a title or description for a group of related form controls within a `<fieldset>`, enhancing accessibility and usability.
"I want to make my forms more accessible and organized."
The `<legend>` element defines a title or description for a group of related form controls within a `<fieldset>`, enhancing accessibility and usability.