Bird
Raised Fist0
HTMLmarkup~20 mins

Strong vs b tag in HTML - Practice Questions

Choose your learning style10 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.

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

  1. 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.
  2. Step 2: Understand visual styling difference

    <b> only makes text bold visually without adding importance or meaning.
  3. Final Answer:

    <strong> indicates important text, <b> only styles text bold. -> Option A
  4. 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

  1. Step 1: Identify tag for importance and bold

    The <strong> tag makes text bold and marks it as important.
  2. Step 2: Check syntax correctness

    The syntax <strong>Warning</strong> is correct and matches the requirement.
  3. Final Answer:

    <strong>Warning</strong> -> Option B
  4. 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

  1. Step 1: Understand visual effect of <strong> and <b>

    Both tags make text bold visually.
  2. Step 2: Understand semantic difference

    <strong> marks text as important; <b> only styles text bold without importance.
  3. Final Answer:

    Both 'very important' and 'just bold' appear bold, but only 'very important' is marked important. -> Option A
  4. Quick Check:

    Visual bold = both; semantic importance = <strong> [OK]
Hint: Both bold visually, only <strong> adds importance [OK]
Common Mistakes:
  • Thinking <b> adds importance
  • Confusing italic with bold
  • Assuming no visual difference
4. You wrote this HTML:
<p>This is <b>important</strong> text.</p>

What is the problem and how to fix it?
medium
A. Mismatched tags; change closing tag to </b>.
B. No problem; it will render correctly.
C. Use <strong> instead of <b> for bold text.
D. Remove both tags; bold is not allowed inside <p>.

Solution

  1. Step 1: Identify tag mismatch

    The opening tag is <b> but the closing tag is </strong>, which is incorrect.
  2. Step 2: Fix the closing tag

    Change the closing tag to </b> to match the opening tag.
  3. Final Answer:

    Mismatched tags; change closing tag to </b>. -> Option A
  4. Quick Check:

    Matching tags fix syntax [OK]
Hint: Always match opening and closing tags exactly [OK]
Common Mistakes:
  • Mixing different tags for open/close
  • Ignoring syntax errors
  • Assuming browser fixes all errors
5. You want to emphasize a warning message that is both visually bold and important for screen readers. Which HTML snippet is best?
hard
A. <b><strong>Warning!</strong></b>
B. <strong><b>Warning!</b></strong>
C. <b>Warning!</b>
D. <strong>Warning!</strong>

Solution

  1. Step 1: Understand semantic and visual needs

    The <strong> tag alone makes text bold and marks it important for screen readers.
  2. Step 2: Avoid redundant tags

    Using both <b> and <strong> is unnecessary; <strong> covers both bold style and importance.
  3. Final Answer:

    <strong>Warning!</strong> -> Option D
  4. Quick Check:

    Use strong alone for bold + importance [OK]
Hint: Use strong alone for bold and importance [OK]
Common Mistakes:
  • Nesting b inside strong unnecessarily
  • Using only b for important text
  • Overcomplicating with multiple tags
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard