What are block level and inline elements? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What are block level and inline elements?

the concept is a bit tricky and I'm seeking an easier way to understand it

11th Feb 2018, 6:27 AM
Ayush Biswal
Ayush Biswal - avatar
3 Answers
+ 16
A block-level element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can). An inline element does not start on a new line and only takes up as much width as necessary. https://www.w3schools.com/html/html_blocks.asp https://developer.mozilla.org/en-US/docs/Web/HTML/Inline_elements https://www.sololearn.com/discuss/454647/?ref=app https://www.sololearn.com/discuss/346549/?ref=app https://www.sololearn.com/discuss/1028674/?ref=app https://www.sololearn.com/discuss/438805/?ref=app https://www.sololearn.com/discuss/27060/?ref=app
11th Feb 2018, 6:47 AM
NezhnyjVampir
+ 4
https://code.sololearn.com/WUWrSMiCq8v6/?ref=app
11th Feb 2018, 6:43 AM
Calviղ
Calviղ - avatar
0
*Block element:- A block level element always starts from a next line. *Inline element:- A inline element do not start on a new line.
18th Feb 2018, 6:56 AM
shine snehasis