+ 1
what is the <div> function? i still dont understand how to use it and how to connect it with css
3 odpowiedzi
+ 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;
}
+ 1
ok thanks for your help :)
0
nice thanks it helps