why do we use div tag?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

why do we use div tag??

1st Jun 2016, 3:19 PM
Rosan karel
Rosan karel - avatar
4 Answers
+ 4
divs are used as containers for other elements. For example if you want to divide your website into two columns, you could use two divs, which would contains all the elements of the column.
1st Jun 2016, 7:33 PM
James Flanders
+ 1
div is used for divide html pages.. with the help of css or make boxes .
1st Jun 2016, 7:59 PM
Paresh Patanwadiya
Paresh Patanwadiya - avatar
0
because we're writing in HTML 😁
7th Jun 2016, 12:37 PM
Ashinze Ekene
Ashinze Ekene - avatar
29th Jun 2016, 10:06 PM
sagir
sagir - avatar