+ 4

Is <br> a block level element ?

I know block elements start with new line and be too leaves line . I became confused when in challenge I got the answer with no . how it is possible ? please help me .😑😑😑😑😑😑😥😥😥😥😥😥

6th Feb 2018, 5:06 PM
Malik
Malik - avatar
3 Antworten
+ 1
This link is a reference to a stack overflow answer that has all the details from the HTML5 specifications. https://stackoverflow.com/questions/1369234/are-hr-and-br-inline-or-block-elements#1369239
6th Feb 2018, 6:39 PM
Andres Mariano Partridge-Rios
Andres Mariano Partridge-Rios - avatar
+ 3
<br> is an inline element. block level elements start with a new line. inline elements don't, they are considered together even when they are on different lines . you use br to start inline elements from a new line.
6th Feb 2018, 5:27 PM
storm
storm - avatar
0
no
10th Feb 2018, 5:34 AM
Said Haris HK
Said Haris HK - avatar