TAG:  hr

<hr>
Available in versions: 2.0, 3.2, 4.0
Browser compatibility: Explorer 4, 5  Netscape 4, 6
 
The <hr> tag is used to render a horizontal rule (line). This is a very useful and commonly used tag.
 
The flow of the text and images is halted on the current line, the rule is rendered on the next line, and then the flow of text and images resumes on the following line. The exact amount of vertical space between the rule and any elements above and below it is browser dependent.
 
The four attributes allow you to adjust the height, position, shading, and width of the rule. Note that these four attributes are deprecated effective with version 4.0. However, all browsers continue to recognize these attributes. You are now to use style sheets to effect the appearance of the rule.
 
There is no closing tag.
 
Core Attributes
 
class    dir    id    lang    onclick    ondblclick    onkeydown    onkeypress    onkeyup    onmousedown    onmousemove    onmouseout    onmouseover    onmouseup    style    title
 
Attributes
 
align    deprecated 4.0
The align attribute is used to position the rule to the center, left, or right. This attribute is deprecated effective with version 4.0. However, all browsers continue to recognize this attribute.
 
noshade    deprecated 4.0
The noshade attribute is a Boolean value. It is not assigned a value. If the attribute is not present, the rule is shaded. If the attribute is present, the rule is not shaded. This attribute is deprecated effective with version 4.0. However, all browsers continue to recognize this attribute.
 
size    deprecated 4.0
The size attribute is used to set the height of the rule in pixels. The default is 3 pixels. This attribute is deprecated effective with version 4.0. However, all browsers continue to recognize this attribute.
 
width    deprecated 4.0
The width attribute is used to set the horizontal width of the rule. It can be assigned either a value in pixels or a percentage of the width of the window containing the element. This attribute is deprecated effective with version 4.0. However, all browsers continue to recognize this attribute.
 
Code:
<hr>
<hr size="5">
<hr size="10">
<hr size="50" width="50%" align="center" noshade>
<hr size="100" width="100" align="left">
<hr style="color:red; height:15px; width:350px;">

 
Output:








Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information