Challenge - 5 Problems
Emphasis Expert
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Difference between and tags
Which statement best describes the difference between the and tags in HTML?
Attempts:
2 left
💡 Hint
Think about how screen readers treat these tags differently.
✗ Incorrect
marks text that should be emphasized and is read with emphasis by screen readers. is for text that is stylistically different but not emphasized, like foreign words or technical terms.
❓ rendering
intermediate1:30remaining
Visual output of vs
What will the browser visually display for this HTML snippet?
<p>This is <em>important</em> and this is <i>italic</i>.</p>
Attempts:
2 left
💡 Hint
Both tags usually render text in italics by default.
✗ Incorrect
By default, browsers render both and text in italics, so both words appear italicized.
❓ accessibility
advanced2:00remaining
Screen reader behavior with and
When a screen reader reads this HTML:
How does it treat the and parts?
<p>This is <em>very important</em> and <i>just styled</i> text.</p>
How does it treat the and parts?
Attempts:
2 left
💡 Hint
Consider which tag conveys meaning beyond style.
✗ Incorrect
Screen readers add emphasis to text to convey importance, but treat text as normal since it is only stylistic.
📝 Syntax
advanced2:00remaining
Correct nesting of and tags
Which HTML snippet is correctly nested and valid?
Attempts:
2 left
💡 Hint
Tags must open and close in the correct order.
✗ Incorrect
Option D correctly nests inside and closes tags in reverse order. Others have mismatched or overlapping tags causing invalid HTML.
❓ selector
expert2:30remaining
CSS selector targeting inside
Given this HTML:
Which CSS selector will style only the tag inside the tag?
<p><i>This is <span><em>special</em></span> text</i>.</p>
Which CSS selector will style only the tag inside the tag?
Attempts:
2 left
💡 Hint
Think about descendant vs direct child selectors.
✗ Incorrect
Selector 'i em' targets any inside at any depth. 'i > em' targets only direct children, which is not. 'em i' and 'p em' target wrong elements.