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

0 points
Submitted by SVTCobra1997
almost 10 years

Oops, try again. Did you remember to add the intro ID to the h2 header?

I am sure i am missing something obvious, but I cant get the first portion of my code to work.

#intro { color: #B83C3A; }

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

I am missing the H2 intro think, but i cant think on how to add it? please help??

Answer 53c1125e548c35bbff0013d0

3 votes

Permalink

you shoud add the id to to the h2, like this: <h2 id="intro">Introduction</h2>

remember, id is spelled with lowercase letters. the class should also be on the h3. it is excactly what the instructions say.. give the id and class to h2 and h3. not to the surrounding divs.

points
Submitted by stetim94
over 9 years

4 comments

Bolelang Rakeepile over 9 years

Thank you. Let me try it.

Bolelang Rakeepile over 9 years

It’s working fine. You’re great.

Casey ST Jones over 9 years

thanks, worked the intro in css has to be #intro, not .intro

Akapaq over 9 years

Thanks! Now i am not stuck anymore! I had caps on the first letter of intro that is why i was stuck! You answered my question too! So noone has to answer mine now!

Answer 53aac21c8c1ccc1108002bfb

0 votes

Permalink

css is fine. can you post your html code? check here how to.

points
Submitted by stetim94
almost 10 years

1 comments

Bolelang Rakeepile over 9 years

How was this problem solved because I am having the same? My coding is below.

Answer 53c10b52631fe959c100128c

-3 votes

Permalink

<!DOCTYPE html>
<html>
    <head>
        <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
        <title>Result</title>
    </head>
    <body>
        <div ID="intro">
            <h2>Introduction</h2>
        </div>
        <div class="standout">
            <h3>Classes and IDs in CSS</h3>
        <p>Classes and IDs are super easy in CSS. You're using them right now!</p>
        </div>
        <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>
points
Submitted by Bolelang Rakeepile
over 9 years