This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Ben
over 9 years

13/23 Error

Here is the error I am receiving:

Oops, try again. Did you remember to set .standout’s color to #F7AC5F?

Here are my files: (HTML)

<!DOCTYPE html>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
        <title>Result</title>
    </head>
    <body>
        <h2 id="intro">Introduction</h2>
        <h3 class="standout">Classes and IDs in CSS</h3>
        <p class="standout">Classes and IDs are super easy in CSS. You're using them right now!</p>
        <h3>Regular HTML Selectors</h3>
        <p>If you don't bother with a class or ID, an HTML element just gets
           the regular CSS styling for that element—or the default styling if you
           don't specify any particular styling on the stylesheet.
        </p>
    </body>
</html>

(CSS) #intro { color: #B83C3A; } .selector { font-family: Verdana; color: #F7AC5F; }

Answer 543bc0909c4e9d142d002459

2 votes

Permalink

very good you post both your html code and css code, very few people who do that.

in your css, you defined your class as .selector, but selector is mostly used to indicate a placeholder, your class you defined in html (standout) should be the name in the css file.

so .standout { font-family: Verdana; color: #F7AC5F; }

points
Submitted by stetim94
over 9 years

3 comments

Ben over 9 years

Oh wow. I can’t believe I did that! I was real tired last night, and I just wanted to get done with this part. Thanks stetim! Also, regarding posting the code, I usually roam around the Q&A seeing if I can be of any help, and I usually see you asking people to post their code, lol.

Anyways, thanks!

stetim94 over 9 years

small mistakes like this happen, good it is fixed now. i would like to help people, but without code it is hard to help

Ben over 9 years

I agree completely. Thanks again.

Answer 54df9a4d9113cb3873004c91

1 vote

Permalink

it is suppose to be: #intro { color: #B83C3A; } .standout { font-family: Verdana; color:#F7AC5F; }

points
Submitted by smiley
about 9 years