The Horizontal Rule

Say you want to draw a line across the page to break your document into sections. HTML provides an easy way to accomplish this, by means of the horizontal rule.

Here's an example of a horizontal rule:


Here's the HTML code:

<HR>

Very simple! You'll notice that there is no closing tag. The single <HR> tag is all there is to it.

Most HTML elements serve as containers for content. The horizontal rule is one of the few exceptions.

Horizontal rules are block-level elements.


| Introduction to HTML | Tutorials |