Inserting Horizontal Lines
Horizontal lines can be useful as dividers between sections of text in a Web page. For example, in the preceding exercise, you created a copyright notice that blends in perhaps a little too well with the rest of the text on the page; it would stand out more if separated from the rest of the document by a horizontal line. You might also want to add another horizontal line between the first headings and the rest of the document.

To add a horizontal line, simply add the following one-sided code where you want the line to appear:
<hr />
The closing space and slash are optional in HTML, but required in XHTML, so it’s a good idea ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access