+ 1
What do we 'div' tags in html?
plzz explain i have no idea about it
3 Answers
+ 4
I can give you many examples here but best and easy way is giving an example from life.
imagine a table for dinner ; is it a good practice to pour all food on table or putting all food on plates and glasses (containers) which will keep food (content) together.
div is a container for a webpage as like as any other containers in life . we keep codes,graphics, works tidy by divs.
i hope it helped
here is one of an example whic you can find many
https://code.sololearn.com/WtkRQFQhpWz3/?ref=app
+ 7
div is a block level element used as a container for your elements & for styling a group of elements.
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div
<div> - HTML - MDN - Mozilla
note: search before Posting duplicate
https://www.sololearn.com/discuss/408473/?ref=app
https://www.sololearn.com/discuss/212755/?ref=app
https://www.sololearn.com/discuss/382712/?ref=app
https://www.sololearn.com/discuss/641293/?ref=app
https://www.sololearn.com/discuss/300091/?ref=app
https://www.sololearn.com/discuss/517882/?ref=app
https://www.sololearn.com/discuss/313968/?ref=app
https://www.sololearn.com/discuss/26202/?ref=app
https://www.sololearn.com/discuss/448535/?ref=app
https://www.sololearn.com/discuss/638992/?ref=app
https://www.sololearn.com/discuss/108567/?ref=app
0
https://www.sololearn.com/discuss/658458/?ref=app