Html Hr Tag

In the <hr> tag indicates horizontal rule which is used to break through horizontal line for document or paragraph or HTML page. All main browsers are supported in <hr> tag. Which tag has no need to end tag and xhtml <hr> tag must be closed properly, like this <hr />.

The optional attributes are align,noshade,size and width and standard attributes are class,dir, id,lang ,style ,title and xml:lang and event attributes are onclick,ondblclick, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup ,onkeydown, onkeypress and onkeyup.

Syntax:

<p> ... </p>
<hr />

Example Code

<!DOCTYPE HTML>
<html>
<body>
    <p> html is a Hyper Text Markup Language version 5 </p>
    <hr />
</body>
</html>

Out Put :



html is a Hyper Text Markup Language version 5


In the above example <hr> tag is used to Hyper Text Markup Language at Text.





Content