Fandom

Hr

648pages on
this wiki
Add New Page
Comments0 Share

The void HTML <hr /> element, or horizontal rule, is used to insert a horizontal rule to separate document sections. Rules are usually rendered as a raised or etched line. Most of its attributes are deprecated, so it is better to use CSS to modify the looks of the rule.


AttributesEdit

  • align - Sets the alignment of the rule on the page. If no value is specified, the default value is left. (Deprecated)
  • color - Sets the color of the rule through a valid color name or color code.
  • noshade - Sets the rule to have no shading. (Deprecated)
  • size - Sets the height, in pixels, of the rule. (Deprecated)
  • width - Sets the length of the rule on the page through a pixel or percentage value. (Deprecated)


HTML example:

First line of text.
<hr />
Second line following a horizontal rule.


That produces:

First line of text.


Second line following a horizontal rule.


Image example:

Hr Element

<hr /> in Firefox 3.6.10

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.