|
|
| |
The Horizontal Rule Divides The Page |
The <HR> Tag Sets The Horizontal Line In Your Page |
The Explanation |
The HTML Code |
| The HR Tag has several attributes that allow you to be creative in your line style. You can set the width, height, and border for your line. The color attribute only works with IE, Netscape ignores this attribute. |
The <HR> Tag can have the following attributes: <HR align="center" noshade size="3" width="75%"> Notice there is no closing tag for the HR tag. |
The HR Attributes
The "Align" attribute can be "Left, Center, or Right". Center is the default alignment.
The "Noshade" attribute removes the 3D effect and fills the line with a solid color. By default the HR has 3D set.
The "Size" attribute sets the vertical size of the line in pixels.
The "Width" attribute sets the length of the line in pixels or as a percent of the container, the container being a browser window, or a table cell. |
The HR Examples
The HR with 3D set, size="3" pixels, and width="25" pixels
The HR with 3D set, size="10" pixels, width="150" pixels, and align="left"
The HR with NOSHADE, size="10", width="80%, and align="center".
Copy The Code |
|
|