Performance: Block-level elements
MEDIUM IMPACT
Block-level elements affect page layout and rendering speed by controlling how content stacks vertically and triggers layout calculations.
<section><p>Text</p></section>
<div><div><div><p>Text</p></div></div></div>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Deeply nested block elements | High DOM depth | Multiple reflows | High paint cost | [X] Bad |
| Minimal block elements with semantic tags | Low DOM depth | Single reflow | Low paint cost | [OK] Good |