The <hr> tag places horizontal rules in a document.

<hr> – singular tag (in XHTML, always close as <hr />)

Options:

Options for horizontal rules are: align, size, width, and color. All option parameters should be included inside double quotes.

<hr align="center" size="10" width="300" color="red" /> produces the following:

Red HR

<hr align="center" size="30" width="100" color="blue" /> produces the following:

Blue HR

Note: Not all web browsers display all horizontal rule variables. If you wish to use specific colors and sizes of lines, you would be better off using graphics instead of the <hr> tag.