A font of knowledge (16/26)


#1

I'm still getting the "oops"-message ("Oops, try again. Did you remember to set your <h2> header font-family to sans-serif?")

This is my code:
HTML:

<!DOCTYPE html>
<html>
    <head>
        <title>Result</title>
        <link type="text/css" rel="stylesheet" href="stylesheet.css"/>
    </head>
    <body>
        <h1>I'm going to be a serif font when I grow up!</h1>
        <h2>I'm going to be a sans-serif font.</h2>
        <h3>I'm going to be in cursive!</h3>
    </body>
</html>

CSS:

<h1> {
    font-family: serif;
}
<h2> {
    font-family: sans-serif;
}
<h3> {
    font-family: cursive;
}

I tried all the tipps I found in here:
- I capitalized serif, sans-serif and cursive
- I changed from Chrome-Browser first to InternetExplorer and then to Firefox

but this all didn't change anything !
The result still looks like this:

So what can I do more ? Or how can I install missing fonts or font-families ?
Please help me.


#2

css selectors are the html opening tags (for example <h3>i am a heading</h3>, <h3> is the opening tag) with < and >, please change your css selectors


#3

I'm sorry, but I don't understand what you mean.
What is wrong in this CSS ?

<h1> {font-family: serif;}
<h2> {font-family: sans-serif;}
<h3> {font-family: cursive;}


#4

change the selector to
h1
h2
h3
without the < & > tags


#5

general css syntax:

selector  { property: value; }

so if i have this html code:

<h1>I'm going to be a serif font when I grow up!</h1>

<h1> is the opening tag, the css selector is the opening tag without < and >

does that make sense?


#6

Stupid me!
Now I understood. And (of course) it worked!
Thank you so much!