Recall & Review
beginner
What are global attributes in HTML?
Global attributes are special attributes that can be used on any HTML element to add extra information or control behavior.
Click to reveal answer
beginner
Name three common global attributes in HTML.
Three common global attributes are:<br>1.
id - unique identifier<br>2. class - groups elements<br>3. style - inline CSS stylingClick to reveal answer
intermediate
What does the
tabindex global attribute do?The
tabindex attribute controls the order in which elements receive keyboard focus when pressing the Tab key. It helps with keyboard navigation.Click to reveal answer
intermediate
How does the
aria-label attribute help users?The
aria-label attribute provides a text label for elements, especially for screen readers. It improves accessibility by describing elements that might not have visible text.Click to reveal answer
beginner
Can the
style attribute be used on any HTML element? Why?Yes, the
style attribute is a global attribute and can be used on any HTML element to apply CSS styles directly to that element.Click to reveal answer
Which of the following is NOT a global attribute in HTML?
✗ Incorrect
href is an attribute specific to <a> and some other elements, not a global attribute.What does the
hidden global attribute do?✗ Incorrect
The
hidden attribute hides the element from view and removes it from keyboard navigation.Which global attribute helps improve accessibility by labeling elements for screen readers?
✗ Incorrect
aria-label provides descriptive text for screen readers.How can you group multiple elements for styling or scripting?
✗ Incorrect
class groups elements so CSS or JavaScript can target them together.Which global attribute controls keyboard focus order?
✗ Incorrect
tabindex sets the order elements receive focus when tabbing.Explain what global attributes are and why they are useful in HTML.
Think about attributes that work everywhere in HTML.
You got /3 concepts.
Describe how the
aria-label and tabindex attributes improve accessibility.Focus on how these help people who use keyboards or screen readers.
You got /3 concepts.