Tell us what’s happening:
I get that this sentence was not fulfilled:
" Your second element should have blue
text and a font-size
of 36px
."
But it’s not true, you can see on screen that my code works.
MY HTML FILE:
<!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 class="odd">Number 1 - I'm a class!</p>
<div id="two"class="two-class">Number 2 - I'm one ID.</div>
<p class="odd three">Number 3 - I'm a class, but cooler!</p>
<div class="four-class" id="four">Number 4 - I'm another ID.</div>
<p class="odd">Number 5 - I'm a class!</p>
</body>
</html>
MY CSS FILE:
.odd {
background-color: yellow;
}
#two{
font-size: 36px;
}
.two-class{
color: blue;
}
.three{
font-size: 24px;
}
.four-class{
font-size: 24px;
}
#four{
background-color: red;
font-weight: bold;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Challenge Information:
Learn CSS Foundations Projects - CSS Foundations Exercise B