A horizontal rule created by the hr tag creates a horizontal line that can can be used to break a webpage into sections.
Welcome to Bucaro TecHelp!

Bucaro TecHelp
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

About Bucaro TecHelp About BTH User Agreement User Agreement Privacy Policy Privacy Site Map Site Map Contact Bucaro TecHelp Contact RSS News Feeds News Feeds

Victims of Sandy Hook

Stop the Slaughter of Innocents. Congress is bought and paid for by gun lunatics and gun promotion groups. If you want to live in a safe America, help buy Congress back for America. Send a donation to Mayors Against Illegal Guns, 909 Third Avenue, 15th Floor New York, NY 10022

HTML Horizontal Rule

A horizontal rule created by the tag <hr /> creates a horizontal line that can can be used to break a webpage into sections. A horizontal rule is a block-level element, which means it has embedded carriage returns before and after, placing it on it's own line. Shown below is a generic horizontal rule.

<hr />

The horizontal rule has several attributes that allow you to control its appearance.

align Alignment on page, left, right, or center.
color Color of the rule.
noshade Normally horizontal rules display with 3D shading.
size Thickness in pixels.
width Width in pixels, or as a percentage of document width.

Horizontal Rule Example

<hr align="left" size="6" width="200" color="green" />

The code above creates the horizontal rule shown below.

I know this section should be about html only, but the example below shows what you can do by adding a little style to a horizontal rule.

<hr align="left" size="8" width="200" style="border-style:outset; background-image: url('bg000017.gif');"  />

If you're using the Firefox browser, you'll see a beautiful rainbow colored three-dimensional rule. If your using Internet Explorer, you'll see a three-dimensional gray rule.

RSS Feed RSS Feed

Follow Stephen Bucaro Follow @Stephen Bucaro

Web Design Sections

Fire HD
[Site User Agreement] [Privacy Policy] [Site map] [Search This Site] [Contact Form]
Copyright©2001-2016 Bucaro TecHelp 13771 N Fountain Hills Blvd Suite 114-248 Fountain Hills, AZ 85268