+ 3

Is <br> not a block element??

I been doin these html challenges and there have been a few questions like which of the following are block elements, is <br> a block element. and I been putting true, because when you do that it fills the remaining width so that the next text is on the next line... thats like the definition of a block element. or am I just going crazy. because I've been getting them wrong. someone please explain why <br> is Not a block element :)

5th Mar 2017, 6:21 PM
Michael Szczepanski
Michael Szczepanski - avatar
5 Respostas
+ 7
isn't <br> used to get blank lines in html?
5th Mar 2017, 6:28 PM
The Coding Sloth
The Coding Sloth - avatar
+ 3
You are right. I've seen questions with wrong answers as well. I think there should be a report button for every challenge and question so if there is something wrong with it, we can mark it so it will get reviewed by admins and fixed.
5th Mar 2017, 6:35 PM
Alireza M
Alireza M - avatar
+ 1
exactly. so it should be a block element right????? "but its not" - people who made html challenges
5th Mar 2017, 6:30 PM
Michael Szczepanski
Michael Szczepanski - avatar
0
It's only my opinion but block element have width and hight. <br> element haven't got any of this atribiute. you can only end line and start text from another line. you also can't with one <br> element skip e.g. ten lines.
5th Mar 2017, 8:00 PM
Daniel Jędrysik
Daniel Jędrysik - avatar
0
As in general you can not place block level elements inside inline elements, but you can place <br> into an inline element, therefore <br> is considered as not block=>inline element!
12th Apr 2017, 12:19 PM
Gina
Gina - avatar