The HR Tag

ken's picture

Opening tag : <HR>
Closing tag: -

Purpose:
The HR tag is used to produce a Horizontal Rule (or line) across your webpage.

Attributes:
Align=alignment
- Specifies where the line should be aligned. Choices are LEFT, CENTER or RIGHT.

Class=class
- Specifies a class to define the style of the line.

Color=color
- Specifies the color of the line.

Event=Javascript
- Assigns some javascript to an event occurring on the line.

id=name
- Sets an ID for the line to dynamically control it elsewhere.

noshade
- Without this, the line will have some shading to produce a 3d effect.

size=#
- specifies the height of the line in pixels

style=style
- Specifies a style for the line.

title=title
- Allows you to specify a title for the line! (Why?)

width=#
- Specifies the width of the line.

Example:

<HR width="50%" size="3">

Related Tags:

-

Back to:
Alphabetical Guide
Guide By Type