3.4. Horizontal Rules

Horizontal rules appear as lines across the user agent screen, and they are generally used to separate information visually. A typical <hr/> is shown in Figure 3-4.

The tag to generate a horizontal rule is <hr />. Like any other nonpaired tag, the <hr /> tag should include a slash so that it operates as an open and close tag.

Previous versions of HTML included various attributes that could be used to modify the width, thickness, and look of the line. These attributes have been deprecated in favor of applicable styles.

You will learn more about styles in Part II of this book. Figure 3-5 shows a few sample rules using different styles.

Figure 3-4. Figure 3-4

Figure 3-5. Figure 3-5

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.3.208