Font sizes change, but code isn't accepted :(

As far as I can tell there’s nothing wrong my code. I even checked it against the solution in the hints page and it still isn’t accepting it. Not really sure what else to do…please help!

  **Your code so far**

<style>
h1 {
font-size: 68px;
}
h2 {
font-size: 52px;
}
h3 {
font-size: 40px;
}
h4 {
font-size: 32px;
}
h5 {
font-size: 21px;
}
h6 {
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 (Windows NT 10.0; Win64; x64; rv:96.0) Gecko/20100101 Firefox/96.0

Challenge: Set the font-size for Multiple Heading Elements

Link to the challenge:

Did it give you any errors when you tested the code? Your code passed for me.

1 Like

Do like this <3

Write h1 element in the heading.

The challenge is to change the font size of of h1-h6 there is no doing anything with a heading in this challenge

@MrTucktastic

The code you have shared works on my end. Please ensure that you have disabled any extensions that interface with the freeCodeCamp website (such as Dark Mode and Ad Blocker), and set your browser zoom level to 100%. Both of these factors can cause tests to fail erroneously.

I toggled my dark mode on mozzila and it accepted it…thanks for the heads up tho. Ill keep that in mind in the future!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.