<hr> HTML Tag

In this article I will discuss the <hr> HTML Tag
  • 1574

The HTML hr tag is used for creating a horizontal rule.The <hr> element can be used to separate content in an HTML page.

Example

<html>

<head>

    <title></title>

</head>

<body>

    <center>

        Student Information</center>

    <hr />

    <b>Student_Name:</b><i>Richa Garg</i>

    <hr />

    <b>Student_ID:</b><i>101124</i>

    <hr />

    <b>Student_Address:</b><i>Delhi</i>

    <hr />

</body>

</html>


Output

Student Information

Student_Name:Richa Garg
Student_ID:101124
Student_Address:Delhi

 

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

© 2020 DotNetHeaven. All rights reserved.