Starlit Daily

📚 › HTML: build the structure of a web page

3. Paragraphs, line breaks and dividers

The p element holds a paragraph. Browsers add space around paragraphs automatically. br forces a line break inside a paragraph and hr draws a horizontal divider between sections.

Both br and hr have no end tag.

Show example

<p>First line<br>Second line</p>
<hr>
<p>A new section.</p>

✍️ Your turn

Write a paragraph with a line break between Hello and World, then a horizontal divider.

← Back to course