+ 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 😑...

18th Dec 2018, 5:47 PM
Atik🇧🇩
Atik🇧🇩 - avatar
6 Antworten
+ 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
18th Dec 2018, 6:04 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 7
Yes hr is an block level element
18th Dec 2018, 5:55 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 3
GAWEN STEASY but I know it's used to represent a horizontal line on the webpage am I wrong ?
18th Dec 2018, 5:57 PM
Atik🇧🇩
Atik🇧🇩 - avatar
+ 1
Then give me a good example of using this in HTML 5 pratically
9th Jan 2019, 10:42 AM
Atik🇧🇩
Atik🇧🇩 - avatar
0
GAWEN STEASY comment a example please
9th Jan 2019, 10:59 AM
Atik🇧🇩
Atik🇧🇩 - avatar
0
Hr is a block element and ol but span Is a inline element
13th Jan 2019, 9:25 AM
hanen mdaghi
hanen mdaghi - avatar