
The Complete Idiot's HTML Tag Reference
| Index
| Previous Tag: <Hn>
| Next Tag: <HTML>
|
<HR>
Displays a horizontral line.
Support:
-
Notes:
- You normally use this tag to separate sections of a page.
- Overuse of this tag can make a page look messy.
Attributes:
- ALIGN
= "Text"
The horizontal alignment of the line.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
1.0 and later |
1.0 and later |
Notes:
-
Possible values: LEFT, CENTER, RIGHT.
- This attribute only makes sense if the line doesn't extend all the way across the page (see the WIDTH attribute).
- This attribute is deprecated.
- CLASS
= "Text"
The style sheet class used by the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
3.0 and later |
4.0 and later |
Notes:
-
You can specify two or more classes; be sure to separate each class name with a space.
- COLOR
= "Color value"
The color of the line.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
Not supported |
3.0 and later |
Not supported |
Notes:
- ID
= "Text"
An alphanumeric string that uniquely identifies the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
3.0 and later |
4.0 and later |
Notes:
-
Although you can use letters and numbers for the ID, the first character must be a letter.
- NOSHADE
Displays the line without shading (so the line looks flat on the page, instead of the usual 3D-ish).
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
1.0 and later |
1.0 and later |
Notes:
- SIZE
= Positive integer
The height of the line, in pixels.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
1.0 and later |
1.0 and later |
Notes:
- STYLE
= "Text"
The style or styles to use with the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
3.0 and later |
4.0 and later |
Notes:
-
If you enter multiple style properties, separate each one with a semi-colon (;).
- WIDTH
= "Positive integer or percentage"
The line's width.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
3.2 and later |
1.0 and later |
1.0 and later |
Notes:
-
Use postiive integers to specify an exact width, in pixels, for the line.
- Use a percentage value to specify the line width as a portion of the browser window.
- This attribute is deprecated.
Example:
Yadda yadda yadda
<HR ALIGN="LEFT" WIDTH=25%>
Blah blah blah
How It Looks:
- Yadda yadda yadda
Blah blah blah
| Index
| Previous Tag: <Hn>
| Next Tag: <HTML>
|
|