Scanner class Methods in Java

HTML Horizontal Rule Tag

What is a Horizontal Rule? 

The Horizontal Rule element is used to separate content in HTML, It create a  Horizontal Line where it is placed..
To create a horizontal line,use the <hr > Tag . It is unpaired tag and does not require a closing tag.For example,

The HTML Code:

<html>
<head>
<title>first page</title>
</head>
<body>
<h1>This is heading 1.</h1>
<h2>This is heading 2.</h2>
<h3>This is heading 3.</h3>
<h4>This is heading 4.</h4>
<h5>This is heading 5.</h5>
<h6>This is heading 6.</h6>
<p>This is a paragraph.</p>
<hr >
<p>This is a paragraph.</p>
</body>
</html>

Result:

Horizontal Rule tag example in HTML
In XHTML the <hr> tag is closed like this: <hr />.We can also use <hr />  in HTML.

Comments