Render Flow - Bold and italic text
Read <p>
→Create P node
Read <em>
→Create EM node as child
The browser reads the paragraph element, then creates child nodes for strong and em tags, applying bold and italic styles respectively during painting.
<p> element with plain text[ ] (Empty page)
[p] | Bold Text and Italic Text
<p><strong>Bold Text</strong> and <em>Italic Text</em></p>
| Element | Default Style | Visual Effect | Semantic Meaning |
|---|---|---|---|
| <strong> | font-weight: bold | Text appears thicker and darker | Indicates strong importance |
| <b> | font-weight: bold | Text appears thicker and darker | Stylistic bold without extra importance |
| <em> | font-style: italic | Text appears slanted | Indicates emphasis |
| <i> | font-style: italic | Text appears slanted | Stylistic italic without emphasis |