How can I change the thickness of the "hr" HTML attribute? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How can I change the thickness of the "hr" HTML attribute?

Can I change the thickness of the "hr" HTML attribute?

13th Dec 2017, 3:44 PM
Nicolás Laiño
Nicolás Laiño - avatar
2 Answers
+ 5
There are two ways you can do it in (talking about the <hr> tag), one is using the size attribute: <hr size="30px"> Remember, the size attribute is deprecated in HTML5! And the other one is to use CSS: <hr style="height:30px;">
13th Dec 2017, 3:53 PM
Dev
Dev - avatar
+ 1
thanks bro
21st Aug 2018, 4:54 AM
Darren Gonsalves
Darren Gonsalves - avatar