- index.html
- style.css
HTML
<!DOCTYPE html>
<html>
<head>
<title>CSS classes</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Course outline</h1>
<p class="completed">Paired tags.</p>
<p class="completed">Single tags.</p>
<p class="completed">Tag attributes.</p>
<p class="completed">Inline styles.</p>
<p class="in-progress">External Styles.</p>
<p class="new">Styling by class.</p>
</body>
</html>
CSS
body {
font-family: "Tahoma", serif;
}
h1 {
color: #999999;
}
.completed {
color: green;
}
.in-progress {
color: orange;
}
.new {
color: red;
}
You have moved to another page
GoalsCompleted
0
- Add property
text-decoration
with the valueline-through
into the.completed
rule, - into the
.in-progress
rule add thepadding-left
property with a value of15px
, - into the
.new
rule addbackground-color
property with a value of#fff0f0
. - Mark the last two paragraphs of the outline as completed by replacing their class with
completed
.