<hr> tag in HTML

The <hr> tag is used to defines a thematic break in an HTML document. The <hr> tag represent a horizontal rule in visual browsers, in HTML 4.01.

Important Description

  • The <hr> tag has no end tag in HTML (means the <hr> tag is an empty tag).
  • But must be properly closed look like <hr /> in XHTML.

Example of <hr> tag

Result Look Like

Interview Questions

C programming questions, SQL database questions, ASP.NET questions, Java questions, etc......


Tutorials

HTML Tutorials, CSS Tutorials, C Programming language, etc......

<hr> Tag Browser Support

Element Chrome Edge Firefox Safari Opera
<hr> Yes Yes Yes Yes Yes

Global Attributes

Event Attributes

Attributes

All listed <hr> attributes are not supported in HTML5:

Attribute Value Description
align left
right
center
Defines the alignment of a <hr> element
size pixels Defines the height of a <hr> element
width pixels
%
Defines the width of a <hr> element

Email Us: advertise@gdatamart.com

Donate Us: Support to GDATAMART

© 2023 GDATAMART.COM (All Rights Reserved)