Easy To Learning
  • Login
  • Sign Up
  • Q&A
  • Home
  • Php Tutorial
  • MySql Tutorial
  • Object-Oriented Programming
  • Java Tutorial
  • HTML Tutorial
  • React JS Tutorials
  • Free Projects
  • Blogs & Articles
  • Others
    • About Us
    • Contact Us
HTML Hr Tag
Easy To Learning

Education Needs Complete Solution

Online Ask Question Question And Answer
  1. Home
  2. HTML Tutorials
  3. HTML Hr Tag

HTML Tutorial

Basic HTML Fundamentals

  • HTML Table Content
  • Introduction To HTML
  • What Is HTML
  • HTML Tags
  • HTML Formatting
  • HTML Heading
  • HTML Paragraph
  • HTML Anchor
  • HTML Image
  • HTML Table
  • HTML Lists
  • HTML Ordered List
  • HTML Unordered List
  • HTML Description List
  • HTML Form

HTML Tags

  • Marquee HTML
  • HTML Textarea
  • HTML Quotes
  • HTML Style
  • HTML Title Or HTML Doctype
  • HTML Div Tag
  • HTML Pre Tag
  • HTML Code Tag
  • HTML Label Tag
  • HTML Input Tag
  • HTML Button Tag
  • HTML Hr Tag
  • HTML Br Tag
  • HTML Script Tag
  • HTML NoScript Tag
  • HTML Bold Tag

HTML Hr Tag

HTML hr tag

HTML <hr> tag is used to specify a paragraph-level thematic break in HTML document. It is used when you abruptly change your topic in your HTML document. It draw a horizontal line between them. It is also called a Horizontal Rule in HTML.

  • The <hr> tag defines a thematic break in an HTML page (e.g. a shift of topic).
  • The <hr> element is used to separate content (or define a change) in an HTML page.

HTML hr tag Example

<h2>HTML</h2>  
<p>HTML is a language for describing web pages.</p>  
<hr/>  
<h2>HR Tag </h2>  
<p> HR tag is used to draw a horizontal line within the texts to sepate content.<p>  

Output

HTML

HTML is a language for describing web pages.


 

HR Tag 

 HR tag is used to draw a horizontal line within the texts to sepate content.

Differences Between HTML 4.01 and HTML5

  • In HTML5, the <hr> tag defines a thematic break.
  • In HTML 4.01, the <hr> tag represents a horizontal rule.
  • However, the <hr> tag may still be displayed as a horizontal rule in visual browsers, but is now defined in semantic terms, rather than presentational terms.
  • All the layout attributes are removed in HTML5. Use CSS instead.

Differences Between HTML and XHTML

  • In HTML, the <hr> tag has no end tag.
  • In XHTML, the <hr> tag must be properly closed, like this: <hr />.

Attributes

Attribute Value Description
align left
center
right
Not supported in HTML5.
Specifies the alignment of a <hr> element
noshade noshade Not supported in HTML5.
Specifies that a <hr> element should render in one solid color (noshaded), instead of a shaded color
size pixels Not supported in HTML5.
Specifies the height of a <hr> element
width pixels
%
Not supported in HTML5.
Specifies the width of a <hr> element
Series: HTML Tutorials Hub
All Topics
Free Download Projects
Previous Chapter
Next Chapter

Ask a Question

Have a coding query or doubt? Ask here and get help from our community.

500 characters remaining
Submitting...
Free Download Projects
Join Telegram Group Join WhatsApp Group
Related Topics:
hr tag color html hr thickness html5 hr hr bootstrap hr tag attributes in html hr tag full form html5 horizontal line hr width

Member Sign In

Forgot?
Signing in...

Don't have an account? Register here

Create Free Account

Register Captcha
Registering...

Already have an account? Sign In

Ask a Question

500 characters remaining
Submitting...

About Easy To Learning

Easy To Learning is a comprehensive programming learning portal offering free, practical, developer-driven tutorials for PHP, Java, Python, Spring, MySQL, CSS, Bootstrap, CakePHP, and more.

Explore community-contributed questions and answers, and download ready-to-run source code projects.

Quick Links

  • Home
  • Questions & Answers
  • Download Projects
  • Blog & Articles
  • Member Login

Community

  • Telegram Group
  • WhatsApp Community
  • Ask a Question
  • Join as Member

Connect With Us

Stay updated with our newest programming tutorials and free open source projects.

© 2026 Easy To Learning. All Rights Reserved.