Why does we use this tag ? | Sololearn: Learn to code for FREE!


Why does we use this tag ?

6/1/2019 11:51:49 AM

Rohan Raj

4 Answers

New Answer


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.


Using the class in div,we can create different type of shapes,,it is also useful in making animations..


<div> tag is used to make Web page sections!