Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS How to Make a Website CSS: Cascading Style Sheets Use ID Selectors

Estil Wallace
Estil Wallace
254 Points

trying css for the first time, attempting to change the background color to orange...

<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Estil Wallace | Learner</title> <link rel="stylesheet" href-"css/normalize.css"> <link rel="stylesheet" href-"css/main.css">

Estil Wallace
Estil Wallace
254 Points

heres the main.css

body { background-color: orange; }

3 Answers

Stone Preston
Stone Preston
42,016 Points

your href attributes need to use =, not -

The correct way would be

<link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/main.css">

instead you used

<link rel="stylesheet" href-"css/normalize.css">
    <link rel="stylesheet" href-"css/main.css">```

which is most likely the reason its not working.

Estil Wallace
Estil Wallace
254 Points

Thank you Stone!!! sometimes I just don't see it, thanks again

giri milner
giri milner
2,358 Points

i think that you should: close the tag </head> write <body></body> in your html instead of minus sign after the "href" should be "="

i hope that i helped.