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