View video tutorial

HTML <hr> Tag

HTML

The <hr> HTML element represents a Horizontal Rule.

HTML <hr> Tag


The <hr> element represents a thematic break between paragraph-level elements when there is a change in context.

The <hr> element is can be thought as semantic terms, rather than presentational terms.

Using appropriate CSS, horizontal uule can be styled accordingly.

Global attributes

Global attributes may be applied on all elements, although some elements may have no effect on them.

<accesskey>, <class>, <contenteditable>, <contextmenu>, <data-*>, <dir>, <draggable>, <dropzone>, <hidden>, <id>, <lang>, <spellcheck>, <style>, <tabindex>, <title>, <translate>.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.

Example

<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.</p>
<hr>
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.</p>
<hr>
<p>There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.</p>
Try it Now »

Click on the "Try it Now" button to see how it works.