The header element is typically used to contain introductory content or a set of navigational links for a document or a section.
Missing Word
header
The header element defines introductory content, often including headings, logos, and navigation.
Question 2
The main element should contain the dominant content of the body, excluding content that is repeated across a group of documents, such as sidebars or navigation links.
Missing Word
main
The main element represents the dominant content unique to the document's central topic.
Question 3
A self-contained composition that is independently distributable or reusable, such as a blog post or a news story, should be enclosed within an article element.
Missing Word
article
The article element is used for independent, self-contained content that makes sense on its own.
Question 4
Associating a text description with an input field using the label element improves accessibility for screen reader users and allows clicking the text to focus the input.
Missing Word
label
The label element explicitly associates a text label with a form control, enhancing usability and accessibility.
Question 5
To ensure a user provides a value before submitting a form, the required attribute can be added to an input field.
Missing Word
required
The required attribute specifies that an input field must be filled out before submitting the form.
Question 6
Grouping related form controls together visually and semantically, often with a legend, is best achieved using the fieldset element.
Missing Word
fieldset
The fieldset element is used to group related elements in a web form, improving structure and accessibility.
Question 7
To specify the kind of input data expected, such as "email" or "password", an input element uses the type attribute.
Missing Word
type
The type attribute specifies the type of input element to display.
Question 8
Providing a concise textual description for an image that screen readers can announce, or that displays if the image fails to load, is the purpose of the alt attribute.
Missing Word
alt
The alt attribute provides alternative text for an image, essential for accessibility and when the image cannot be displayed.
Question 9
When an element does not have visible text content but needs an accessible name for screen readers, the aria-label attribute can be used to provide it.
Missing Word
aria-label
The aria-label attribute defines a string value that labels the current element, providing an accessible name for elements without visible labels.
Question 10
To control whether an element is focusable and its order in sequential keyboard navigation, the tabindex attribute can be set to a non-negative integer.
Missing Word
tabindex
The tabindex attribute indicates if an element can be focused and participates in sequential keyboard navigation.
Question 11
To explicitly define the purpose or nature of an element to assistive technologies, such as indicating a custom button or a navigation region, the role attribute is employed.
Missing Word
role
The role attribute defines the purpose or nature of an element to assistive technologies, enhancing its semantic meaning.
Question 12
To embed sound content, such as music or podcasts, directly into a web page, the audio element is the standard HTML tag.
Missing Word
audio
The audio element is used to embed sound content in an HTML document.
Question 13
Content like copyright information, author details, or related documents for its nearest sectioning content or sectioning root is typically placed within the footer element.
Missing Word
footer
The footer element represents a footer for its nearest sectioning content or sectioning root.
Question 14
A short hint that describes the expected value of an input field when it is empty, such as an example value or a brief format description, is provided by the placeholder attribute.
Missing Word
placeholder
The placeholder attribute provides a hint to the user about what kind of information is expected in an input field.
Question 15
When an element's accessible name is provided by another element already present in the DOM, the aria-labelledby attribute can be used to reference it by ID.
Missing Word
aria-labelledby
The aria-labelledby attribute establishes relationships between objects and their labels, referencing an existing element by ID.
Question 16
To provide a list of predefined options that users can choose from or type into an input field, the datalist element is used in conjunction with a list attribute on the input.
Missing Word
datalist
The datalist element provides a list of predefined options for an input field, offering suggestions to the user.