Render Flow - Paragraphs
[Read <p>] -> [Create P node] -> [Add text content] -> [Close P] -> [Render block box]
The browser reads the paragraph tag, creates a block box for it, adds the text inside, and then displays it with default spacing.
[Read <p>] -> [Create P node] -> [Add text content] -> [Close P] -> [Render block box]
<p>This is the first paragraph.</p>[Paragraph 1] | This is the first paragraph. | |____________________________|
<p>This is the first paragraph.</p> <p>This is the second paragraph.</p>
| Element | Default Display | Semantic Meaning | Visual Behavior |
|---|---|---|---|
| <p> | block | Paragraph of text | Starts on new line, full width, vertical margin separates paragraphs |
<p> tag is specifically designed to create paragraphs in HTML.<div> and <section> are for grouping content, <span> is inline, not for paragraphs.<p> and close with </p>.<p>Hello World</p> correctly opens and closes the paragraph tag. Options A and B have missing closing brackets, and C uses an invalid tag.tags properly with
[OK]<p>First paragraph.</p> <p>Second paragraph.</p>
<p> tag creates a block with space above and below, so paragraphs appear separated by blank lines.<p>This is a paragraph. <p>This is another paragraph.</p>
<p> tag is not closed before the second <p> starts.needs a closing
[OK]<p> tags.<em> tag is used inside the second paragraph to italicize text properly without breaking HTML rules.Pass the test and this pattern moves unknown