+ 1

what is the <div> function? i still dont understand how to use it and how to connect it with css

28th May 2016, 4:06 AM
Daniel Setiawan
Daniel Setiawan - avatar
3 Respostas
+ 2
<div> is a block element, that is used to organize the structure of your web page. It is mainly used as a container of other elements. You can refer to your div from CSS just as you would with any other element, using a class or I'd attribute. For example: HTML <div id="mydiv"> <p>some content goes here</p> </div> CSS #mydiv { color: white; background-color: red; }
28th May 2016, 7:59 AM
James Flanders
+ 1
ok thanks for your help :)
1st Jun 2016, 7:16 AM
Daniel Setiawan
Daniel Setiawan - avatar
0
nice thanks it helps
4th Jun 2016, 5:17 PM
techa
techa - avatar