This forum is now read-only. Please use our new forums at discuss.codecademy.com.

CSS: An Overview Forum

View Course » View Exercise

155 points
Picture
Submitted by
李育睿
about 3 years ago

7/26 don't pass , help ~~

<!DOCTYPE html>

<head>
    <link type="text/css" rel="stylesh    eet" href="stylesheet.css"/>
    p{
      color:green;
    }
    <title>Result</title>
</head>
<body>

    <p>You're about to style this paragraph with CSS all on your own!</p>
</body>

What' wrong with my code ? And how should I do?


2 votes

permalink

This code:

p {
      color:green;
}

is a css code, so it should be placed in stylesheet.css file


And you have to fix this code:

<link type="text/css" rel="stylesh    eet" href="stylesheet.css"/>

it should be:

<link type="text/css" rel="stylesheet" href="stylesheet.css"/>

2375 points
571828824b7f51f26c000619_875219903
Submitted by
Maciej Wiercioch
about 3 years ago

2 Comments

Picture 李育睿 about 3 years ago

Thanks !! But I don't know how should place that code in stylesheet.css file


-2 votes

permalink

simple, just go on the top near to index.html tab, you'll find another called stylesheet.css, there you MUST write your css code

365 points
543fc82f631fe988640020d7_382532424
Submitted by
Tobias Páez
over 2 years ago