+ 2

How to add a horizontal line in html?

Also give example with a proper html code which run properly

19th Jun 2020, 6:53 AM
Dinesh Pandey
Dinesh Pandey - avatar
11 Réponses
+ 5
U can use <hr> tag You can also make "Vertical Lines" by Horizontal Rule. For Example Vertical Line – <hr width = "1" size = "255" />
19th Jun 2020, 3:56 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 1
You can add a horizontal line using the <hr> tag. Not attaching a code here. You can check it in the code playground. You just need to put <hr> in the <body> tag.
19th Jun 2020, 6:56 AM
XXX
XXX - avatar
+ 1
it is <hr/> with no closing tags
19th Jun 2020, 3:44 PM
Cars
Cars - avatar
0
Write here answer plz
19th Jun 2020, 7:02 AM
Dinesh Pandey
Dinesh Pandey - avatar
0
Thanks
19th Jun 2020, 7:05 AM
Dinesh Pandey
Dinesh Pandey - avatar
0
<hr> tag is what you need to make a horizontal line
19th Jun 2020, 7:06 PM
Hamzah Mohamed
Hamzah Mohamed - avatar
0
<hr> self closing tag
20th Jun 2020, 2:37 PM
Tandoh Achiever Teneng
Tandoh Achiever Teneng - avatar
0
Use <hr> tag
20th Jun 2020, 4:02 PM
Nasrudin Abdikadir Mohamed
Nasrudin Abdikadir Mohamed - avatar
0
hr
29th Nov 2021, 7:48 AM
Bear Yoem