The cover of The Complete Idiot's Guide to Create a Web Page The Complete Idiot's HTML Tag Reference

| Index | Previous Tag: <Hn> | Next Tag: <HTML> |


<HR>

Displays a horizontral line.

Support:

HTML StandardInternet ExplorerNetscape Navigator
2.0 and later 1.0 and later 1.0 and later
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 StandardInternet ExplorerNetscape 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 StandardInternet ExplorerNetscape 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 StandardInternet ExplorerNetscape Navigator
Not supported 3.0 and later Not supported

Notes:

ID = "Text"
An alphanumeric string that uniquely identifies the tag.

Support:

HTML StandardInternet ExplorerNetscape 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 StandardInternet ExplorerNetscape 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 StandardInternet ExplorerNetscape 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 StandardInternet ExplorerNetscape 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 StandardInternet ExplorerNetscape 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> |