What is the basic difference between inline and block elements? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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 Respostas
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
13th Dec 2020, 5:34 PM
Aderibigbe Samuel
Aderibigbe Samuel - avatar