0

How do you create a horizontal line in html?

11th Feb 2017, 3:20 AM
Shashank Rathod
Shashank Rathod - avatar
10 ответов
+ 8
Hello Shashank, well for a horizontal line you may use <hr/> this tag don't need an opening tag just like break line tag <br/> . you may also format your horizontal line using width attribute like <hr width=50px/> to create a line of 50 pixels. or <hr width=50%/> to create a line 50 % of screen.
11th Feb 2017, 4:29 AM
GeekyShacklebolt
GeekyShacklebolt - avatar
+ 4
<hr>
11th Feb 2017, 4:13 AM
Kawaii
Kawaii - avatar
+ 3
You can also define a top or bottom border on an element ( manage its width by managing width of element styled, like @CodeRunner had explained for <hr> tag, which is simply styled by same way -- <hr> usage must to be reserved to semantical usage as content separator ;) ): border-bottom:3px dashed royalblue; ... as well as handle line objects in <canvas> and/or <svg> container ^^
11th Feb 2017, 6:05 AM
visph
visph - avatar
+ 1
use the tag called <hr/>
11th Feb 2017, 4:22 AM
Chandan Kumar Y S
Chandan Kumar Y S - avatar
+ 1
<hr/>
11th Feb 2017, 3:33 PM
Asif Suhel
Asif Suhel - avatar
+ 1
The below answers are not accepting for the above question. <hr>❌ <hr/>❌ hr tag ❌ <hr> tag❌ finally!! here is the answer 😀👇🏻 <hr /> ✅
25th Oct 2023, 7:18 AM
Bharathi Pravallika✌🏻
Bharathi Pravallika✌🏻 - avatar
0
try using <hr/->
12th Feb 2017, 1:47 PM
tanya
0
<hr />
21st Feb 2017, 12:23 AM
baali hicham
baali hicham - avatar
0
type this tag👉<hr> or u can also type <hr />.
21st Feb 2017, 1:25 PM
PRINCE NOOR
PRINCE NOOR - avatar
- 1
how we can run php program ? plz.. explian in detail
11th Feb 2017, 4:19 PM
Sayali Joshi
Sayali Joshi - avatar