I’ve tried to complete this exercise, but no matter what I do, it doesn’t mark any step as correct when I run the tests. I have followed the steps thoroughly, so I don’t know what to do now.
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Class and ID Selectors</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="odd"><p>Number 1 - I'm a class!</p></div>
<div id="two">Number 2 - I'm one ID.</div>
<div class="three"><p>Number 3 - I'm a class, but cooler!</p></div>
<div class= "four" id="heavy">Number 4 - I'm another ID.</div>
<div class="odd"><p>Number 5 - I'm a class!</p></div>
</body>
</html>
Try to not modify the structure of the html by moving elements around or adding new ones, this can confuse tests. Only add classes/id attributes as needed.
For reference, here’s the initial html:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Class and ID Selectors</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<p>Number 1 - I'm a class!</p>
<div>Number 2 - I'm one ID.</div>
<p>Number 3 - I'm a class, but cooler!</p>
<div>Number 4 - I'm another ID.</div>
<p>Number 5 - I'm a class!</p>
</body>
</html>