+ 5

I don't know how to use Div's, help.

15th Nov 2016, 2:27 PM
Ivana Herrera
Ivana Herrera - avatar
12 Antworten
+ 8
just you can write like below inside body tag: <div>hello</div> simple div in your html code with out styles
26th Nov 2016, 5:29 AM
Boorsu Gangadharam
Boorsu Gangadharam - avatar
+ 8
div is useful to seperate the blocks in given page...
10th May 2017, 4:16 AM
Boorsu Gangadharam
Boorsu Gangadharam - avatar
+ 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 😊☺😀
15th Nov 2016, 3:35 PM
Baraa AB
Baraa AB - avatar
+ 6
its easy <div> Write things insideit </div> then div{ styles } now for <div class=heading> .heading{ and for div id=box #box{
15th Nov 2016, 2:51 PM
Sandeep Chatterjee
+ 5
just use like this.... div class="you"> <p>Hi</p> </div> then in css use like this .you { color: red; }
15th Nov 2016, 2:34 PM
NabiL
NabiL - avatar
+ 4
thank you all, it was so much helpful (my english it's not clear, maybe, but I Try)
22nd Nov 2016, 6:14 PM
Ivana Herrera
Ivana Herrera - avatar
+ 3
no problem good luck ☺😊😉
22nd Nov 2016, 6:24 PM
Baraa AB
Baraa AB - avatar
+ 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 { }
14th Dec 2016, 9:47 AM
4xMafole
4xMafole - avatar
+ 2
method in using div 1. <div id = "anything"> or 2. < div class = " anything">
17th Dec 2016, 4:04 PM
muritadoh sodeeq
muritadoh sodeeq - avatar
+ 1
<div class="wel"> Hello, friends </div> .wel {color:red; font-size:12px;}
16th Nov 2016, 4:02 PM
mitul patel
mitul patel - avatar
+ 1
<div class=" ">Hello world</div> ." "{color: ; font-size}
7th Jan 2017, 1:39 PM
Mips555
Mips555 - avatar
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?
22nd Nov 2016, 5:11 PM
Tracy Gipson
Tracy Gipson - avatar