+ 1

Can anyone give me a simpler explanation on what Inline and block-level elements are??

I'm still new to coding and have started learning html fundamentals although I'm having difficulty understanding what the Inline and block-level elements are so can someone pls help me??!?

25th Feb 2017, 6:23 PM
I don't code
I don't code - avatar
2 Réponses
+ 9
Block level elements begin with a new line . eg. <div>Block</div> <div>Element</div> result-- Block Element Whereas inline elements align themselves on the same line if space is there eg. <span>Inline</span> <span>Element</span> result-- Inline Element (note- no line breaks on this one)
25th Feb 2017, 7:55 PM
Utkαrsh
Utkαrsh - avatar
+ 1
inline means elements In line and block level elements represent whole block. like you want to add specific color to any text in a line, its inline. whole paragraph, section etc are block level elements.
25th Feb 2017, 6:57 PM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar