|
|
HTML <hr> tag
Syntax
<hr>
Definition and Usage
The HR element is used to insert a horizontal rule to visually separate document
sections. Rules usually are rendered by the browsers as a raised or etched line.
Optional Attributes
| Attribute |
Value |
Description |
| align |
center
left
right |
Specifies the alignment of the horizontal rule. Deprecated. Use
style sheets instead. |
| noshade |
noshade |
Sets or retrieve whether the horizontal rule is drawn with
3-D shading. Deprecated. Use style sheets instead. |
| size |
pixels
% |
Specifies the thickness of the horizontal rule. Deprecated. Use
style sheets instead. |
| width |
pixels
% |
Specifies the width of the horizontal rule. Deprecated. Use
style sheets instead. |
Standard Attributes
| id, class, title, style, dir, lang, xml:lang |
For a full description, go to Standard
Attributes.
Event Attributes
| onclick, ondblclick, onmousedown, onmouseup, onmouseover,
onmousemove, onmouseout, onkeypress, onkeydown, onkeyup |
For a full description, go to Event Attributes.
Example
| Source |
Output |
|
This is the text in the document <hr> this is another text
|
This is the text in the document this is another text
|
|
|