<!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=
<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
Reviewed by Network security
on
April 29, 2019
Rating:
No comments: