W e b t u t o r i a l s

Define Website

Define HTML

HTML, Head, Title tag

HTML Body tag

HTML Heading tags

HTML Paragraph tag

HTML Horizontal Line

HTML Hyperlink

HTML Image tag

HTML Font tag

HTML Exercise

HTML Text Direction

HTML Comment

HTML Lists

HTML Marquee tag

HTML Table tag

HTML Table Website

HTML Frame

HTML Iframe

HTML Fieldset tag

HTML Form Elements

HTML Form Exercise

HTML Image Map

HTML Div & Span Tag

CSS Float & Clear

HTML Color Codes

HTML Symbols

HTML Assignment

HTML Horizontal Line

HTML <hr> tag stands for Horizontal Ruler, it is used to create a horizontal line on the HTML document.

By default <hr> tag will appear with a width of 100%, a height of 2px, and a 3D border.

hr tag is a empty tag, you do not need to close hr tag

Attribute Description
Width Specifies the width of a horizontal line.
Align Use to change the line alignment. Values are left, center, right.
Default is center.
Size Use to change the height of a line.
Color Use to change the color of a line.

Example 1: Horizontal Line using hr tag with styling.