Performance: Em vs i tag
LOW IMPACT
This affects page rendering speed and visual stability by how browsers handle semantic versus purely stylistic tags.
<p>This is an <em>important</em> message.</p>
<p>This is an <i>important</i> message.</p>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Using <i> for emphasis | Minimal (1 node) | 0 reflows | Low paint cost for italic style | [!] OK |
| Using <em> for emphasis | Minimal (1 node) | 0 reflows | Low paint cost for italic style | [OK] Good |