Which statement about the <legend> element is true?

It defines a caption for the <fieldset> element

The <legend> element provides the caption for a fieldset, labeling the group of related form controls. When you bundle controls like name, email, and address inside a fieldset, the legend describes what that group is about, helping users quickly understand the purpose of the controls. This labeling is also important for accessibility, as screen readers announce the legend as the heading for the grouped controls, giving context before the user navigates the fields. A best practice is to place the legend as the first child of the fieldset so assistive technologies read it immediately when the fieldset is encountered. For example, you might have a fieldset with a legend like “Contact information” that groups together name, email, and phone fields. This concept isn’t about a table caption or a document title, and it isn’t used as a tooltip—those roles belong to other elements or attributes.

It defines a caption for a table

It defines the title of the document

It defines a tooltip for form fields

Want more questions?

All options are one-time payments.

$25.99

30 day pass for new members

All the basics to get you started

  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 30 day premium pass access
$59.99$171.99 usd

6 month DELUXE pass (most popular)

Full access FOR 6 MONTHS! & the ultimate digital PDF study guide (BONUS)

  • $171.99 usd value for $59.99! You save $106!
  • Ad-free experience
  • View your previous attempt history
  • Mobile app access
  • In-depth explanations
  • 6 months of full access
  • Ultimate digital PDF study guide included
  • Priority support
$15.99 $24.99

Ultimate digital PDF study guide

For those that prefer a more traditional form of learning

  • Available for instant download
  • Available offline
  • Hundreds of practice multiple choice questions
  • Comprehensive content
  • Detailed explanations
Image Description
Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy