How the <div> works? | Sololearn: Learn to code for FREE!

+1

How the <div> works?

We have to add <div> in <body>. But why? https://code.sololearn.com/W6sFlas52uSw/?ref=app

4/13/2018 7:27:23 AM

Rahil Mavani

2 Answers

New Answer

+6

the div is a block level element,a container

+3

Just think of the DIV element as a styleble contractor for grouping other elements.