+ 5
I don't know how to use Div's, help.
12 Antworten
+ 8
just you can write like below inside body tag:
<div>hello</div> simple div in your html code with out styles
+ 8
div is useful to seperate the blocks in given page...
+ 7
in html write..
<div class="a1"> write anything u want </div>
then go to css and write:
#a1 {
write what u want to do in a1
}
that everything..
hope u understand..
good luck bro 😊☺😀
+ 6
its easy
<div>
Write things insideit
</div>
then div{
styles
} now for <div class=heading> .heading{
and for div id=box #box{
+ 5
just use like this....
div class="you">
<p>Hi</p>
</div>
then in css use like this
.you {
color: red;
}
+ 4
thank you all, it was so much helpful (my english it's not clear, maybe, but I Try)
+ 3
no problem good luck ☺😊😉
+ 3
This comes in html5
Div simply means division....div are divisions in a web page :
By default they are three div:
1.header div
2.main div(main page content)
3.footer div
How to use?
<div class="header">all consistence needed for ones header</div>
<div class="main">the main content of the web page</div>
<div class="footer">the foot of the webpage always at the bottom</div>
On CSS?
To refer to div (division) on CSS.
Just prefix the name of the class with a dot (.)
For example below: ref# above context
.header {
}
.main {
}
.footer {
}
+ 2
method in using div
1. <div id = "anything">
or
2. < div class = " anything">
+ 1
<div class="wel"> Hello, friends </div>
.wel {color:red; font-size:12px;}
+ 1
<div class=" ">Hello world</div>
." "{color: ; font-size}
0
so we can write anything into div
like p,h1 and anything ?
whatever you write you can refer class as the change maker to entire div items
and it is not possible with other methods?
am I correct?