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

banner
Close banner
0 points
Submitted by Yeasin Arafat
over 8 years

Oops, try again. Did you remember to add the standout class to the first h3 header?

hello I am stucked here. hope will get some help here.

<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>

and CSS #intro{ color:#b83c3a; }

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

but i get this massage. “Oops, try again. Did you remember to add the standout class to the first h3 header?”

Answer 55ce2bf19113cb046500010d

1 vote

Permalink

Mine looks right to me…

</head>
<body>
    <h2 id="intro">Introduction</h2>
    <h3 id="standout">Classes and IDs in CSS</h3>
    <p id="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>

But I keep getting an error saying I missed the standout in h3 :(

Here’s my CSS:

#intro {
color: #B83C3A;

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

Am I missing something? I’m going cross eyed from scrutinising it!

points
Submitted by Inga Dahl
over 8 years

1 comments

Inga Dahl over 8 years

Managed to work out what I did wrong (with some help!). Instead of putting classes, I was using the id tag; and instead of .standout in the CSS, I was using #standout. It’s all good now.

Answer 55c7f6079113cb64b00004b8

0 votes

Permalink

you capitalized the first “standout”. They both need to be lower case, other wise they are different tags.

points
Submitted by randombloodleaf
over 8 years