+ 3
Is <hr> tag a block level element ?
In a quiz challenge I was asked to select which of the following are block level elements 1. form 2.span 3.hr 4.ol I selected 1 and 4 and my answer was wrong !!! I reported that to be a wrong answer . Did I do the right thing or not 😑...
6 Réponses
+ 16
Yes its for horizontal lines but in html 4 and 5 it is an block element you can get additional info here
https://stackoverflow.com/questions/1369234/are-hr-and-br-inline-or-block-elements
https://www.w3resource.com/html/HTML-block-level-and-inline-elements.php
+ 7
Yes hr is an block level element
+ 3
GAWEN STEASY but I know it's used to represent a horizontal line on the webpage am I wrong ?
+ 1
Then give me a good example of using this in HTML 5 pratically
0
GAWEN STEASY comment a example please
0
Hr is a block element and ol but span Is a inline element