
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
HTML
Tag
The <hr> tag in HTML adds a line that separates content in an HTML document. A thematic break is defined by the <hr> tag in HTML5. It has no end tag.
Let us now see an example to implement the <hr> tag −
Example
<!DOCTYPE html> <html> <head> <title>Document Title</title> </head> <body> <h1>Products</h1> <p>Here are the products −</p> <h2>Clothing</h2> <p>Clothing includes T-Shirts, Shirts, Jeans, Trousers and Hoodie.</p> <hr> <h2>Electronics</h2> <p>Electronics includes Mobile, Mobile Accessories,Laptops, Desktop systems, etc.</p> </body> </html>
Output
In the above example, we have first set a section −
<h2>Clothing</h2><p></p> <p>Clothing includes T-Shirts, Shirts, Jeans, Trousers and Hoodie.</p>
After that, we have used the <hr> tag to separate the above content with the below one −
<hr> <h2>Electronics</h2> <p>Electronics includes Mobile, Mobile Accessories,Laptops, Desktop systems, etc.</p>
- Related Articles
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML Tag
- HTML tag
- HTML Tag
- HTML Tag
- HTML Tag

Advertisements