Main Index |
Top Of Tree |
Tag Index |
Tag History
- What is it?
- A Horizontal Rule provides a visual division between sections of
text. The default value in most multimedia capable browsers is a 3
dimensional transparent line running horizontally across the entire
screen.
- Attributes
- Align
- 2 | 3
| 3.2 | IE1
| M2FB | N1.1
- Required? No
- Description:
For rules that do not span the entire browser window using the WIDTH
attribute, this indicates how to align the rule with respect to the
sides of the browser window.
- Values: Left |
Center [DEFAULT] |
Right.
- Color
- 2 | 3
| 3.2 | IE3A1
| M | N
- Required? No
- Description:
This attribute specifies the color of the rule.
- Values: An
RGB triplet or a special
Color name.
- Noshade
- 2 | 3
| 3.2 | IE1
| M2FB | N1.1
- Required? No
- Description:
This is a standalone attribute which makes the rule a solid color
(not three dimensional.)
- Values: NA
- Size
- 2 | 3
| 3.2 | IE1
| M2FB | N1.1
- Required? No
- Description:
This attribute specifies the vertical size of the rule in pixels.
- Values: Positive integer values
- Width
- 2 | 3
| 3.2 | IE1
| M2FB | N1.1
- Required? No
- Description:
Specifies the width of the rule on the screen. Values are specified either
by absolute pixel size or percentage of the screen/window to use.
- Values:
A positive integer representing
pixel width of the rule or a positive integer/floating point number combined
with a percent char ('%') representing a percentage of the screen width.
Style Sheet Attributes
[More on Cascading Style Sheets]
- Class
- 2 | 3
| 3.2 | IE3B1
| M | N4B2
- Required? No
- Description:
This represents an assigned semantic classification grouping(s) for the
current tag.
- Values:
Given as a comma separated list of alphanumeric characters. Class names
may contain spaces (multiple consecutive spaces treated as a single
space.)
- ID
- 2 | 3
| 3.2 | IE3B1
| M | N4B2
- Required? No
- Description:
This assigns an alpha-numeric identifier that is unique
to this tag instance. Style sheets may use this attribute to reference
the current instance of this tag. Hyperlinks may also use this identifier
to serve as a destination.
- Values:
An alphanumeric string - initial character must be a letter followed
by alphabetic characters, digits, "-" or "."
characters. The allowable set of alpha-characters is restricted to the
A-Z and a-z set.
- Style
- 2 | 3
| 3.2 | IE3B1
| M | N4B3
- Required? No
- Description:
This attribute is a text string that provides rendering style
information for the current tag.
- Values:
Please see the description of
inline styles for more
information on how to use this attribute and its
possible values.
- Example
- <hr WIDTH="30%" ALIGN="center"
SIZE=3 NOSHADE
COLOR="#0000FF">
- Parent Model
- %Block Format
Parent% |
%Multimedia
Parent% |
<Body> |
<Basefont>
- Content Model
- This tag accepts no content.
Tips & Tricks
- The ALIGN attribute is meaningless unless the WIDTH attribute
is also specified.
- It is very easy to use a graphic instead of the HR tag, but remember
that there is no automatic implied line break before and after a graphic
like there is for HR.
- Specifying a graphic instead of an HR tag will involve a longer download
time because of the extra HTTP request required. Keep this in mind when authoring
for your readers.
- DTD NOTE: The parent model used in the
HTML 3.2 and Internet Explorer 3.0 DTDs conflict slightly. While most DTDs
list the HR tag as a block element, its actual implementation as a standalone
element tends make it a bit more relaxed in most browser's implementation.
Browser Peculiarities
Boring Copyright Stuff...