# Text Formatting — HTML

Source: https://www.geekswithgeeks.com/en/html/html-text-formatting

> Bold, italic and other inline emphasis tags.

## Emphasis tags

`<strong>` and `<em>` are semantic; `<b>` and `<i>` are purely visual.

```html
<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.

**Quiz:** Which tag carries semantic meaning, not just visual style?

- [x] <strong>
- [ ] <b>
- [ ] <i>

*Answer:* <strong>. `<strong>` communicates importance to assistive tech; `<b>` and `<i>` are purely visual.
