The ______ element is used to define a caption for the fieldset element.
- caption
- figcaption
- header
- legend
The legend element is used within a fieldset to provide a caption. It can be positioned as the first child of a fieldset element and provides a user-readable description for the group. This assists in accessibility and user understanding of the grouped form controls.
Loading...
Related Quiz
- How does the placement of "thead" and "tfoot" in the code affect the visual rendering of the table?
- How does the browser interpret an HTML document that contains multiple tags?
- The _____ tag is utilized to display text as italicized, emphasizing the text.
- On a recipe website, you need to list the ingredients and steps separately and also allow for a nested list under some of the steps. How would you utilize ordered and unordered lists to structure the content?
- The ______ meta tag property is vital for SEO purposes.