- Home
- /
- Horizontal Line Tag
HTML Tutorial
INTRODUCTION
HTML BASIC TAGS
INLINE & BLOCK ELEMENTS
HTML LISTS
HTML TABLES
HTML FORMS
HEAD ELEMENTS
HTML MEDIA
MISCELLANEOUS TAGS
- Home
- /
- Horizontal Line Tag
Horizontal Line Tag
To separate content or sections visually in a webpage, HTML offers the <hr>
tag. This tag is used to draw a horizontal line across the width of the page or container.
What is <hr>
Used For?
The <hr>
tag stands for “horizontal rule.” It’s typically used to:
- Divide content into sections
- Create a break or transition between themes
- Add a visual boundary without relying on CSS
This tag does not contain any content and is treated as an empty element, meaning it does not require a closing tag.
Basic Syntax
Here’s how the <hr>
tag is used:
You can place it anywhere within the body of your document where you want a visual separator.
Watch this quick demo video: