What does "div" do in html and css. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What does "div" do in html and css.

15th Nov 2017, 10:57 AM
liam
liam - avatar
2 Answers
+ 2
It's like a container that puts everything together in a box. Use it when you want to add multiple elements together with the same CSS properties.
15th Nov 2017, 11:01 AM
Witty Phantom
Witty Phantom - avatar
+ 1
The <div> tag defines a division or a section in an HTML document. The <div> tag is used to group block-elements to format them with CSS.
15th Nov 2017, 11:08 AM
Bhumiben Solanki