+ 7
What is the basic difference between inline and block elements?
I am really confused between inline and block elements in html. I can't understand the difference.
12 Answers
+ 7
✨💛~_Starlight_~💛✨ Read the lesson below and go through the threads .Also Kindly use the search bar next time ...
https://www.sololearn.com/learn/HTML/1034/?ref=app
https://www.sololearn.com/Discuss/19736/?ref=app
https://www.sololearn.com/Discuss/57720/?ref=app
+ 4
Doesn't the html tutorial teach this?
+ 3
Coder thank you 😇
+ 3
Aderibigbe Samuel thank you so much... it helped 😇
+ 3
Sonic ...It does but still I didn't get it... but now I know... so no problem... 🙂
+ 2
+ 2
Alphin K Sajan thank you so much.. 😇..now I get it 👍
+ 2
《 Nicko12 》 thank you so much 😇💜
+ 2
✨💛~_Starlight_~💛✨ Wlcm
+ 2
If a elements takes whole 100% width of the brower then it is Block level otherwise it is inline element
+ 2
Simply,
An inline element does not start on a new line and only takes up as much width as necessary.
A block-level element always starts on a new line and takes up the full width available i.e stretches out to the left and right as far as it can
Hope this helps ☺️
+ 2
✨💛~_Starlight_~💛✨ you are welcome bro