+ 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??!?
2 Respuestas
+ 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)
+ 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.