What do div tags do?
Group elements together to make it easier to style them altogether.
What symbol is used when styling a class?
Hashtag(#)
What symbol is used for an id when styling?
Period
Split the elements below into two groups using div tags.
<h5> </h5>
<li> </li>
<p> </p>
<button> </button>
<div> <div>
<h5> </h5> <p> </p>
<li> </li> <button> <button>
</div> </div>
Give the element below a class named market.
<p> Supermarket </p>
<p class="market"> Supermarket</p>
Give the element below an id named spies.
<h5> Team Squid</h5>
<h5 id="spies> Team Squid </h5>
Style the following div tags with the following:
- text align :right
- font size : 200px
<div>
<h1> </h1>
<li> </li>
</div>
div {
text-align:right;
font-size: 200px;
}
Style a class, "market" with the following:
- font family = fantasy
- font -size = 100px
- color = aqua
#market {
font-family : fantasy;
front-size:100px;
color:aqua;
}
Style an id named spies with the following:
width = 300px
height = 300px
.spies {
width:300px;
height:300px;
}
What is wrong with the code below?
<div>
<h1> </ h1>
<p> </p>
<li> </li>
<div>
Ending div tag is incorrect.
Correct Ending Tag: </div>
(Yes or No) You can give 2 elements the same class.
<h1 class="AP"> </h1>
<li class="AP"> </li>
Yes
Is this styling for a class or an id?
#lion {
text-align: right;
font-size: 10000px;
}
Class