The <strong> tag is used to indicate that the text is of strong importance or seriousness. It also helps screen readers emphasize the text for accessibility.
Click to reveal answer
beginner
What does the <b> tag do in HTML?
The <b> tag simply makes the text bold without adding any extra meaning or importance to it. It is used for styling only.
Click to reveal answer
beginner
Which tag should you use to emphasize important text for screen readers: <strong> or <b>?
You should use <strong> because it adds semantic meaning that the text is important, which screen readers can detect and announce differently.
Click to reveal answer
beginner
Does the <b> tag provide any semantic meaning to the text?
No, the <b> tag does not provide semantic meaning. It only changes the appearance to bold without indicating importance.
Click to reveal answer
intermediate
Can <strong> and <b> look the same visually? If yes, why choose one over the other?
Yes, both can look bold visually. But <strong> adds meaning for accessibility and SEO, while <b> is just for visual style without meaning.
Click to reveal answer
Which tag should you use to mark text as important for screen readers?
A<b>
B<strong>
C<em>
D<i>
✗ Incorrect
indicates strong importance and is recognized by screen readers, unlike which is only visual.
What does the <b> tag do?
AUnderlines text
BMakes text italic
CEmphasizes text for screen readers
DMakes text bold without semantic meaning
✗ Incorrect
makes text bold but does not add meaning or importance.
Which tag is semantic and adds meaning to the text?
A<strong>
B<span>
C<b>
D<div>
✗ Incorrect
is semantic and indicates importance, while is not semantic.
If you want text to appear bold but have no special meaning, which tag is best?
A<strong>
B<em>
C<b>
D<mark>
✗ Incorrect
is used purely for visual bold styling without semantic meaning.
Why is using <strong> better for accessibility than <b>?
A<strong> adds semantic importance for screen readers
B<b> adds semantic importance
C<b> is deprecated
D<strong> changes font size
✗ Incorrect
tells screen readers the text is important, improving accessibility.
Explain the difference between the and tags in HTML.
Think about meaning vs appearance.
You got /4 concepts.
When should you use instead of in your web pages?
Consider accessibility and meaning.
You got /4 concepts.
Practice
(1/5)
1. What is the main difference between the <strong> and <b> tags in HTML?
easy
A. <strong> indicates important text, <b> only styles text bold.
B. <b> indicates important text, <strong> only styles text bold.
C. Both tags have the same meaning and usage.
D. <strong> makes text italic, <b> makes text bold.
Solution
Step 1: Understand semantic meaning of tags
<strong> is used to mark text as important or urgent, giving it semantic meaning for browsers and assistive technologies.
Step 2: Understand visual styling difference
<b> only makes text bold visually without adding importance or meaning.
Final Answer:
<strong> indicates important text, <b> only styles text bold. -> Option A
Quick Check:
Semantic meaning = <strong> [OK]
Hint: Use <strong> for importance, <b> for just bold style [OK]
Common Mistakes:
Thinking both tags mean the same
Using <b> for important text
Confusing <strong> with italic tags
2. Which of the following is the correct syntax to make the word "Warning" bold and indicate it is important?
easy
A. <b>Warning</b>
B. <strong>Warning</strong>
C. <i>Warning</i>
D. <em>Warning</em>
Solution
Step 1: Identify tag for importance and bold
The <strong> tag makes text bold and marks it as important.
Step 2: Check syntax correctness
The syntax <strong>Warning</strong> is correct and matches the requirement.
Final Answer:
<strong>Warning</strong> -> Option B
Quick Check:
Important bold text = <strong> [OK]
Hint: Use <strong> tags for important bold text [OK]
Common Mistakes:
Using <b> when importance is needed
Using <i> or <em> which italicize text
Incorrect tag closing
3. What will be the visual output of this HTML snippet?
<p>This is <strong>very important</strong> text and this is <b>just bold</b> text.</p>
medium
A. Both 'very important' and 'just bold' appear bold, but only 'very important' is marked important.
B. 'very important' is italic, 'just bold' is bold.
C. 'very important' is normal, 'just bold' is bold and important.
D. Both texts appear normal without bold styling.
Solution
Step 1: Understand visual effect of <strong> and <b>
Both tags make text bold visually.
Step 2: Understand semantic difference
<strong> marks text as important; <b> only styles text bold without importance.
Final Answer:
Both 'very important' and 'just bold' appear bold, but only 'very important' is marked important. -> Option A