Adding Horizontal Rules

One graphic element that is completely supported by the majority of the browsers is the horizontal rule. There are several attributes you can use to jazz up horizontal rules, although they’ve all been deprecated in favor of styles.

To insert a horizontal rule:

1.
Type <hr where you want the rule to appear. The text that follows will appear in a new paragraph below the new rule.
Figure 5.36. The hr tag includes an automatic line break both before and after the rule.

Figure 5.37. Horizontal rules can be helpful for dividing sections on your page.

2.
If desired, type size="n", where n is the rule’s height in pixels. ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.