Recall & Review
beginner
What is the purpose of the
title attribute in HTML?The
title attribute provides additional information about an element. When a user hovers over the element, a small tooltip with this information appears.Click to reveal answer
beginner
Which HTML elements can have a
title attribute?Almost all HTML elements can have a
title attribute, including <a>, <img>, <button>, and <div>.Click to reveal answer
intermediate
How does the
title attribute improve accessibility?Screen readers can read the
title attribute to provide extra context to users who rely on audio, helping them understand the purpose of elements better.Click to reveal answer
beginner
Example: What will the user see when hovering over this link?<br>
<a href="https://example.com" title="Go to example website">Example</a>
When the user moves the mouse over the link text "Example," a small tooltip will appear showing the text "Go to example website."
Click to reveal answer
intermediate
True or False: The
title attribute should be used as the only way to provide important information.False. The
title attribute is helpful but should not be the only way to convey important information because some users may not see or hear it.Click to reveal answer
What happens when you add a
title attribute to an HTML element?✗ Incorrect
The
title attribute shows a small tooltip with extra information when the user hovers over the element.Which of these is a good use of the
title attribute?✗ Incorrect
The
title attribute is used to add extra description or information, like for links.Can the
title attribute be used on an <img> tag?✗ Incorrect
The
title attribute can be used on images to give extra information shown as a tooltip.Why should the
title attribute not be the only way to give important info?✗ Incorrect
Not all users can see or hear tooltips, so important info should also be visible or accessible in other ways.
What accessibility benefit does the
title attribute provide?✗ Incorrect
Screen readers can read the
title attribute to help users understand the element better.Explain what the
title attribute does in HTML and give an example of how it is used.Think about what happens when you move your mouse over a link or image.
You got /3 concepts.
Describe why the
title attribute is helpful for accessibility and what its limitations are.Consider users who rely on audio or keyboard navigation.
You got /4 concepts.