HTML hr Tag

The HTML <hr> tag is used to define a horizontal line or rule to separate content in an HTML page. The <hr> tag is an empty tag and this tag does not require an ending tag.




<!doctype html>
      <title>HTML Hr Tag</title>
      <h1>What Is HTML?</h1>
      <p>HTML stands for Hyper Text Markup Language, which is the most popular language on web and the language is used to develop web pages.</p>
      <h1>What Is CSS?</h1>
      <p>Cascading Style Sheets, also called CSS, is a simple design language designed to simplify the process of making web pages look great.</p>


Hr tag html

Global Attributes

The <hr> tag supports all the Global Attributes in HTML.

Event Attributes

The <hr> tag supports all the Event Attributes in HTML.

Supported Browsers

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

Leave a Comment

Your email address will not be published.