- 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>Paired tags.</p>
<p>Single tags.</p>
<p>Tag attributes.</p>
<p>Inline styles.</p>
<p>External Styles.</p>
<p>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
Let's add design using classes:
- Add a
completed
class to the first four paragraphs. - To the fifth paragraph, add the class
in-progress
. - Add a
new
class to the sixth paragraph.