Tell us what’s happening:
All but the first test is failing, but I can’t figure out why. When I use the same HTML and CSS on my end it works fine. Any tips would be greatly appreciated!
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Class and ID Selectors</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<p class="odd">Number 1 - I'm a class!</p>
<div id="two">Number 2 - I'm one ID.</div>
<p class="odd adjust-font-size">Number 3 - I'm a class, but cooler!</p>
<div id="four" class="adjust-font-size">Number 4 - I'm another ID.</div>
<p class="odd">Number 5 - I'm a class!</p>
</body>
</html>
/* file: styles.css */
.odd {
background-color: yellow;
}
.adjust-font-size {
font-size: 24px;
}
#two {
color:blue;
font-size: 36px;
}
#four {
background-color: red;
font-size: 24px;
font-weight: bold;
}
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Challenge Information:
Learn CSS Foundations Projects - CSS Foundations Exercise B