+ 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.

12th Dec 2020, 2:47 PM
Anchita Sarma
Anchita Sarma - avatar
12 Respuestas
12th Dec 2020, 2:49 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 4
Doesn't the html tutorial teach this?
14th Dec 2020, 7:31 AM
Sonic
Sonic - avatar
+ 3
Coder thank you 😇
13th Dec 2020, 5:28 AM
Anchita Sarma
Anchita Sarma - avatar
+ 3
Aderibigbe Samuel thank you so much... it helped 😇
13th Dec 2020, 5:28 PM
Anchita Sarma
Anchita Sarma - avatar
+ 3
Sonic ...It does but still I didn't get it... but now I know... so no problem... 🙂
14th Dec 2020, 9:11 AM
Anchita Sarma
Anchita Sarma - avatar
+ 2
Alphin K Sajan thank you so much.. 😇..now I get it 👍
12th Dec 2020, 2:51 PM
Anchita Sarma
Anchita Sarma - avatar
+ 2
《 Nicko12 》 thank you so much 😇💜
12th Dec 2020, 2:52 PM
Anchita Sarma
Anchita Sarma - avatar
12th Dec 2020, 2:52 PM
Alphin K Sajan
Alphin K Sajan - avatar
+ 2
If a elements takes whole 100% width of the brower then it is Block level otherwise it is inline element
13th Dec 2020, 5:18 AM
Coder
Coder - avatar
+ 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 ☺️
13th Dec 2020, 4:41 PM
Aderibigbe Samuel
Aderibigbe Samuel - avatar
+ 2
✨💛~_Starlight_~💛✨ you are welcome bro
13th Dec 2020, 5:34 PM
Aderibigbe Samuel
Aderibigbe Samuel - avatar