- 1
About div tag mujhe samaj nahi aa raha
Div tag please explain me
8 ответов
+ 1
Div allows you to separate sections of a page.
Html
<body>
<div id="div1">Here is the 1st div</div>
<div id="div2">Here is the 2nd div</div>
</body>
Css
div {
background-color: red;
}
#div1{
color: blue;
}
#div2{
color: white;
}
What is the outcome?
+ 1
Just imagine as container box of other elements.
+ 1
hope these helps.. use search for more information.....
https://www.sololearn.com/discuss/759632/?ref=app
https://www.sololearn.com/discuss/1020158/?ref=app
https://www.sololearn.com/discuss/1095460/?ref=app
https://www.sololearn.com/discuss/108567/?ref=app
https://www.sololearn.com/discuss/940823/?ref=app
+ 1
w3-container is inbuilt class in w3.css you are imported..
container is unspecified.
0
<!DOCTYPE html>
<html>
<title>W3.CSS</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<body>
<div>
<h2>Without a Container</h2>
<p>The w3-container class is one of the most important W3.CSS classes.</p>
<p>It provides correct margins, padding, alignments, and more, to most HTML elements.</p>
</div>
<div class="w3-container">
<h2>With a Container</h2>
<p>The w3-container class is one of the most important W3.CSS classes.</p>
<p>It provides correct margins, padding, alignments, and more, to most HTML elements.</p>
</div>
</body>
</html>
0
Isme div class mai w3 container ki jagah only container likhe to bhi kaam karega na sir
0
So bhai sikhe kaha se practice ke liye
- 1
With code