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. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *