Attribute of <HR> Tag
Attribute of <HR> Tag
ALIGN
Positions the line flush left, flush right, or in the center of the document. These settings are irrelevant unless you use the WIDTH= attribute to make the line shorter than the width of the document.
Example:<H2 ALIGN=LEFT>List of Courses </H2>
<HR WIDTH="40%" ALIGN=LEFT>
<UL TYPE=SQUARE>
<LI>BCA
<LI>MCA
<LI>PGDCA
<LI>MBA
</UL>
Possible Values
LEFT, CENTER, RIGHT
CLASS
Indicates which style class applies to the <HR> element.
Example:<HR CLASS="dkm" WIDTH="50%">
Possible Values
Any Class Name.
COLOR
Specifies the color of the line. The color name can substitute for the hexadecimal RGB values.
Example:<HR COLOR=#09334C>
Possible Values
Color Name or hexadecimal color code.
ID
Assigns a unique ID selector to an instance of the <HR> tag. When you then assign a style to that ID selector, it affects only that one instance of the <HR> tag.
Example:<HR ID="dkm">
Possible Values
Any ID Name.
NOSHADE
Specifies that the browser not shade the line.
Example:<HR NOSHADE ALIGN=CENTER WIDTH="50%">
<IMG SRC="logo.jpg" ALIGN=CENTER
BORDER=0 ALT="MYcompany">
<BR CLEAR=ALL>
<HR NOSHADE ALIGN=CENTER WIDTH="50%">
Possible Values
NOSHADE
SIZE
Specifies the thicknes of the line (in pixels).
Example:<HR SIZE=10>
Possible Values
Value in pixel or percentage.
WIDTH
Specifies the length of the line. You can specify the value with an absolute number of pixels or as a percentage to indicate how much of the total width available is used.
Example:<H2 ALIGN=CENTER>The End!</H2>
<HR WIDTH="85%">
<P ALIGN=CENTER>
<A HREF="index.html">Home</A> |
<A HREF="aboutus.html">About Us</A> |
<A HREF="contact.html">Contact Us</A>
Possible Values
Value in Pixel or Percentage.
TITLE
Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips over the horizontal rule.
Example:<HR TITLE="Tutorial">
Possible Values
Any text Message.