+ 1
can anyone explain me how<div> works in HTML..? please
the <div> element in HTML..?
3 Answers
+ 10
Div is used like a container for others HTML elements.
In HTML5 you can replace this tag, with new tags like header, aside, footer ...
For example... if you want to create a container for a gallery:
<div class = "gallery">
...
</div>
Then, you can modify the container in CSS, with all elements inside it.
~ Sorry for my English. ^_^
+ 4
the div element is a block element, the use of it is to structure your website. u can code inside the div whatever u want for example two photos with a little bit of info. take a look on bootsrap, u can find there every thing about webdevolpment.
+ 1
its a container to other elements....