CSS
body {
background-color: hotpink;
}
CSS
.classname {
color: lightgreen;
}
HTML
<div class="classname">
<!-- your content goes in here -->
</div>
CSS
.classname {
color: lightgreen;
border-radius: 10px;
}
HTML
<div class="classname">
<!-- your content goes in here -->
</div>
CSS
p {
font-family: typewriter;
}
would you look at that!
CSS
.highlight {
text-decoration: red 1px underline;;
}
HTML
<p>this is a <span class="underline">splelling misteake.</span></p>
this is an underline.
CSS
.cube {
width: 300px;
height: 60px;
background-color: red;
}
HTML
<div class="cube">
<!-- you can put some text in here, or leave it empty -->
</div>
CSS
.cat {
background-image: url("cat.jpg");
background-size: cover; /* make sure the background is resized to fit the div. */
color: hotpink;
}
HTML
<div class="cat">
<!-- your content in here -->
</div>