Summary -
In this topic, we described about the <hr /> tag along with detailed example.
Horizontal Rule in HTML document. Horizontal lines tag used to separate the sections visually by drawing a line in between horizontally. <hr> tag represents the paragraph level break.
Horizontal lines tag represented as <hr /> in HTML coding. If <hr /> tag specified, the browser draws a line in the next line from current position. <hr /> tag is an empty element, the closing tags doesn’t required.
The <hr> tag defines a thematic break in HTML5. The <hr> tag represents a horizontal rule in HTML 4.01. All the layout attributes are removed in HTML5.
Syntax -
<hr/>
Example -
<!DOCTYPE html>
<html>
<head>
<title>Line break tag example..</title>
</head>
<body>
<p>First paragraph text here…<hr />
Second paragraph text here…<hr/>
Third paragraph text here…</p>
</body>
</html>
Output -
First paragraph text here…
Second paragraph text here…
Third paragraph text here…