- index.html
- style.css
HTML
<!DOCTYPE html>
<html>
<head>
<title>Looking for errors in CSS</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 {
margin: 30px;
font-family: "Georgia", serif;
}
p {
margin: 10px 0;
padding: 5px 10px
border: 1px solid #cccccc;
border-left-width: 10px;
color: white;
}
.completed {
border-color: #27ae60;
background-color: #2ecc71;
text-decoration: linr-through;
}
.in-progress {
border-color: #f39c12;
background-color: #f1c40f;
}
.new {
border-color: #c0392b;
backround-color: #e74c3c;
}
You have moved to another page
GoalsCompleted
0
Help Cupcake correct errors in outline styles:
- First error with lost styles for all paragraphs,
- second error with no strikethrough for completed items,
- third error with missing background of uncompleted ones.