What is <div> used for | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is <div> used for

I have no idea what it does. Please answer my question.

14th Sep 2017, 2:04 PM
TLokLe - avatar
4 Answers
+ 4
to sum up what they said div is a division element
14th Sep 2017, 2:44 PM
lenore - avatar
+ 3
Allows you to divide things up, so you can manipulate one area without affecting things outside of it. Keeps things more organized, more easily maintained, and much easier to control things on your page without cluttering up the code.
14th Sep 2017, 2:08 PM
+ 1
Thanks for answering guys 😊
14th Sep 2017, 2:36 PM
TLokLe - avatar
- 2
Basically an invisible container.
14th Sep 2017, 2:13 PM
josh mizzi
josh mizzi - avatar