rdiaz1
September 1, 2023, 6:05pm
1
My student is working on Unit 2 Lesson 6 Mod 11 and wrote this code.
body {
background: white;
}
h2 {
color: #f42b2b ;
}
He is tried using just “red” will not change the color. Yes he even refresh the page and still did not work. What am I missing?
Hi rdiaz1,
It worked for me when I tried it.
May we have a look at the index.html file?
Paul
rdiaz1
September 1, 2023, 7:13pm
3
Here is the code for the index.html file.
And how to be honest
Learning to be honest
Try to be honest and if you lie just correct yourself.
Do the right thing.
You're done!
Values
It can help you be a better person.
It helps you to lie less.
How about the section in the red oval?
rdiaz1
September 1, 2023, 8:04pm
5
Sorry, somehow the code did not get pasted to the email.
Here is a screen shot of the index:
Here is a screen shot of the css
Ok, here is the bug. Either:
a) rename your .css file to style.css (on the list of files), OR
b) index.html line 4: change style.css to new.css.
In other words, your css file name has to match in both places.
I hope that helps,
Paul
1 Like
rdiaz1
September 1, 2023, 9:41pm
7
Thank you, I completely miss that.