+ 1

can anyone explain me how<div> works in HTML..? please

the <div> element in HTML..?

13th Apr 2017, 8:17 AM
rohan_m
rohan_m - avatar
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. ^_^
13th Apr 2017, 8:23 AM
Maz
Maz - avatar
+ 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.
13th Apr 2017, 8:26 AM
Amjad
Amjad - avatar
+ 1
its a container to other elements....
13th Apr 2017, 9:32 AM
Yasiru Nayanajith
Yasiru Nayanajith - avatar