My font size isn't working

Tell us what’s happening:
I set up my font size in my style sheet, but its still not working help please

Your code so far


<style>
h1 
font-size {
   font-size: 68px;
}
h2 
font-size {
   font-size: 52px;
}
h3 
font-size {
   font-size: 40px;
}
h4 
font-size {
   font-size: 32px;
}
h5 
font-size {
   font-size: 21px;
}
h6 
font-size {
   font-size: 14px;
}

</style>
<h1>This is h1 text</h1>
<h2>This is h2 text</h2>
<h3>This is h3 text</h3>
<h4>This is h4 text</h4>
<h5>This is h5 text</h5>
<h6>This is h6 text</h6>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15.

Challenge: Set the font-size for Multiple Heading Elements

Link to the challenge:

Let’s look at the h1:

h1 
font-size {
   font-size: 68px;
}

This is saying “find all font-size elements that are children of h1 elements and set their font-size to 68px”. What you want it to say is “find all h1 elements and set their font size to 68px”.

2 Likes

Oh okay I get it thanks. I just figured it out it’s not a class. I’m supposed to be telling it change all font-size with in h1 tag, but why when I type these h1 tags I don’t need the brackets

or a closing tag