- 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-decorationwith the valueline-throughinto the.completedrule, - into the
.in-progressrule add thepadding-leftproperty with a value of15px, - into the
.newrule addbackground-colorproperty with a value of#fff0f0. - Mark the last two paragraphs of the outline as completed by replacing their class with
completed.