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

+1

Why does we use this tag ?

6/1/2019 11:51:49 AM

Rohan Raj

4 Answers

New Answer

+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.

+6

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

+3

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