HTML : Horizontal line

<!DOCTYPE html>
<html>

<head>
 <meta name="viewport" content="width=device-width, initial-scale=1">
 <title>Horizontal Line</title>
</head>

<body>

 First Line
 <hr> Second Line
 <hr> Third Line
 <hr>

</body>

</html> .                Output=First Line

Second Line

Third Line

             Description=

<hr> tag


Uses of <hr> tag
  • Used for creating a horizontal line. This is also called Horizontal Rule in HTML.
  • This tag defines a thematic break in an HTML page (e.g. a shift of topic).
  • Used to separate the content (or define a change) in an HTML page.
  • This tag do not have end tag, but we can use it like <hr /> (optional).
HTML : Horizontal line HTML : Horizontal line Reviewed by Network security on April 29, 2019 Rating: 5

No comments:

Useful Information

Powered by Blogger.