Next / Previous / Contents / TCC Help System / NM Tech homepage

9.11. The hr element: horizontal ruled line

To draw a horizontal rule (black line) across the page as a separator, use an empty hr element. Content model:

element hr
{ Common.attrib,

An hr element can carry any of the attributes discussed in Section 15.3, “The common attributes: Common.attrib.

In particular, if you want to change the color or thickness or other appearance of a rule, you can give it a class attribute that ties it to a CSS stylesheet rule. See Section 5, “Separating content and presentation with CSS”.


No content is allowed inside an hr element. Encode it as <hr/>.