HTML 5 <hr> Tag
Example
Use the <hr> tag to define a change in the content:
<h1>HTML</h1>
<p>HTML is a language for describing web pages.</p>
<hr />
<h1>CSS</h1>
<p>CSS defines how to display HTML elements.</p> |
Try it yourself »
|
Definition and Usage
The <hr> tag inserts a horizontal rule, which should define a thematic change
in the content.
Differences Between HTML 4.01 and HTML 5
In HTML 5, the <hr> tag displays a horizontal rule, and defines a
change in the content.
In HTML 4.01 it just displayes a horizontal rule.
All attributes in HTML 4.01 (align, noshade, size, and width) are
deprecated
in HTML 4.01, and not supported in HTML 5. You should use CSS to style the hr
element.
Standard Attributes
| class, contenteditable, contextmenu, dir, draggable, id, irrelevant, lang, ref, registrationmark, tabindex, template, title |
For a full description, go to Standard Attributes in HTML 5.
Event Attributes
| onabort, onbeforeunload, onblur, onchange, onclick,
oncontextmenu, ondblclick, ondrag, ondragend, ondragenter, ondragleave,
ondragover, ondragstart, ondrop, onerror, onfocus, onkeydown, onkeypress,
onkeyup, onload, onmessage, onmousedown, onmousemove,
onmouseover, onmouseout, onmouseup, onmousewheel, onresize, onscroll, onselect,
onsubmit, onunload |
For a full description, go to Event Attributes in HTML 5.
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|