0
0
HTMLmarkup~20 mins

Strong vs b tag in HTML - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Strong vs b Tag Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Difference in meaning between and
Which statement best describes the difference between the and tags in HTML?
A<strong> indicates important text with semantic meaning, while <b> only styles text as bold without semantic importance.
B<b> indicates important text with semantic meaning, while <strong> only styles text as bold without semantic importance.
CBoth <strong> and <b> tags have the same semantic meaning and styling effect.
D<strong> is deprecated and should not be used, while <b> is the modern replacement.
Attempts:
2 left
💡 Hint
Think about how screen readers treat these tags.
rendering
intermediate
1:30remaining
Visual output difference between and
What will be the visual output in a modern browser for this HTML snippet?
<p>This is <strong>important</strong> and this is <b>bold</b>.</p>
AThe words 'important' and 'bold' both appear bold with no difference in style.
B'important' is bold and italic, 'bold' is only bold.
C'important' is underlined, 'bold' is bold.
D'important' is normal text, 'bold' is bold.
Attempts:
2 left
💡 Hint
Browsers usually style both tags as bold by default.
accessibility
advanced
2:00remaining
Screen reader behavior for vs
How do screen readers typically treat text inside compared to text inside ?
AScreen readers emphasize <b> text but ignore <strong> text.
BScreen readers ignore both <strong> and <b> tags and read text normally.
CScreen readers emphasize <strong> text by changing tone or volume, but do not emphasize <b> text.
DScreen readers pause briefly after <b> text but not after <strong> text.
Attempts:
2 left
💡 Hint
Think about semantic importance and how assistive technology uses it.
📝 Syntax
advanced
2:00remaining
Correct usage of and in HTML
Which HTML snippet correctly uses and tags according to best semantic practices?
HTML
<p>Here is some <strong>important</strong> text and some <b>decorative</b> text.</p>
A<p>Here is some <strong>important</strong> text and some <strong>decorative</strong> text.</p>
B<p>Here is some <b>important</b> text and some <strong>decorative</strong> text.</p>
C<p>Here is some <b>important</b> text and some <b>decorative</b> text.</p>
D<p>Here is some <strong>important</strong> text and some <b>decorative</b> text.</p>
Attempts:
2 left
💡 Hint
Important content should use semantic tags.
selector
expert
2:30remaining
CSS selector targeting but not
Which CSS selector will apply styles only to elements but not to elements?
A*:not(b) { color: red; }
Bstrong { color: red; }
Cb { color: red; }
Dstrong, b { color: red; }
Attempts:
2 left
💡 Hint
Think about how to select only one tag type.