Why is the code hr used in html | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is the code hr used in html

I am akul

12th Jun 2017, 3:56 PM
rinku
3 Answers
+ 5
Tag Hr is used in html to draw a horizontal line in web page.
12th Jun 2017, 4:01 PM
Ajay Kumar
Ajay Kumar - avatar
+ 4
More exactly, it was technically a Horizontal Rule before Html5, but Html5 redefine it as semantical element separator of content, a thematic change, the end of one section and start of another... It's not mandatory to be always displayed as an horizontal line in future, even if actually, browsers continue to have this behaviour ;)
12th Jun 2017, 4:36 PM
visph
visph - avatar
- 1
It is used to draw lines
14th Jun 2017, 10:23 AM
rinku