+ 1

Why does we use this tag ?

1st Jun 2019, 11:51 AM
Rohan Raj
Rohan Raj - avatar
3 Answers
+ 8
You define different class/id of block of html tags. To style it in css or do advanced stuff in js and so one. So div is used like container of html tags. You can separete parts of site with div to style it easely. Name of class/id is what you choose.
1st Jun 2019, 8:42 PM
PanicS
PanicS - avatar
+ 6
Using the class in div,we can create different type of shapes,,it is also useful in making animations..
1st Jun 2019, 4:39 PM
Vivek Raj
Vivek Raj - avatar
+ 3
<div> tag is used to make Web page sections!
1st Jun 2019, 4:14 PM
CodeFu
CodeFu - avatar