Performance: Semantic elements and screen readers
MEDIUM IMPACT
This concept affects how quickly screen readers can interpret and navigate page content, impacting accessibility and user experience for assistive technology users.
<header>Welcome to our site</header> <main>Here is the main content</main>
<div>Welcome to our site</div> <div>Here is the main content</div>
| Pattern | DOM Operations | Reflows | Paint Cost | Verdict |
|---|---|---|---|---|
| Using <div> for all content | Minimal DOM nodes | 0 reflows | Minimal paint | [X] Bad for accessibility |
| Using semantic elements like <header>, <main> | Minimal DOM nodes | 0 reflows | Minimal paint | [OK] Good for accessibility |