0
How do you create a horizontal line in html?
10 odpowiedzi
+ 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.
+ 4
<hr>
+ 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 ^^
+ 1
use the tag called <hr/>
+ 1
<hr/>
+ 1
The below answers are not accepting for the above question.
<hr>❌
<hr/>❌
hr tag ❌
<hr> tag❌
finally!! here is the answer 😀👇🏻
<hr /> ✅
0
try using <hr/->
0
<hr />
0
type this tag👉<hr> or u can also type <hr />.
- 1
how we can run php program ? plz.. explian in detail