+ 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 :)
5 odpowiedzi
+ 7
isn't <br> used to get blank lines in html?
+ 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.
+ 1
exactly. so it should be a block element right????? "but its not" - people who made html challenges
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.
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!