Lesson 6 / 28
Text Formatting
Bold, italic and other inline emphasis tags.
Emphasis tags
<strong> and <em> are semantic; <b> and <i> are purely visual.
<p><strong>Important:</strong> save your work.</p>
<p>She said it was <em>amazing</em>.</p>
<p><b>Bold text</b> and <i>italic text</i>.</p>Semantic vs presentational
<strong> tells screen readers "this matters" (usually rendered bold). <b> just looks bold with no extra meaning.
Quick check: Which tag carries semantic meaning, not just visual style?
- <strong>
- <b>
- <i>
Answer
<strong> — `<strong>` communicates importance to assistive tech; `<b>` and `<i>` are purely visual.