1<!-- HTML -->
2
3<!-- You can change the style of the horizontal line like this: -->
4
5<hr style="width:50%", size="3", color=black>
6
7
8<!-- Or like this: -->
9
10<hr style="height:2px; width:50%; border-width:0; color:red; background-color:red">
11
12
1<hr> <!-- it represents a horizontal line break, in HTML4.0 we use <hr>,
2 in XHTML1.0 we use <hr/>, in HTML5(which is the current version of
3 HTML) we can use both <hr> and <hr/>
4 -->
1Incase you are trying to diffrentiate between verical and horizontal. this is a horizontal line
2------------
3<!--Then Vertical goes straight from top to bottom. -->
4
5<!--to add a horizontal line in html-->
6<hr>
1<!-- You can add a horizontal line in html by a <hr> tag.-->
2<!Doctype Html>
3
4<html>
5
6 <head>
7
8 <meta charset="UTF-8">
9 <title>HR Tag</title>
10
11 </head>
12 <body>
13
14 <h1>Hello</h1>
15 <hr>
16
17 </body>
18
19</html>
20
21
22<hr>