What does <div> do? | Sololearn: Learn to code for FREE!


What does <div> do?

8/9/2015 4:00:00 AM

Kyla Elefan

5 Answers

New Answer


its like a wraping paper which wraps the elements in this




explain more


It is used as a container for other elements. For example if you want to write two identical stories using tags such as <h1> for the headline, <p> for the text and <img> to include images, you have to put each story in a <div>. Imagine the <div> as a box which contain any element you want.


div tag divide page in division. it is a block level element