Set the font-size for Multiple Heading Elements (error)

i think the code is correct, but why error?

here the code.!

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

This is h1 text

This is h2 text

This is h3 text

This is h4 text

This is h5 text
This is h6 text

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

EDIT: i disabled adblock, and the first h1 is ok,
however the other (h2, h3, h4, h5, h6) are with errors

**Your browser information: i use edge on windows 10 normal**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36 Edg/93.0.961.52

Challenge: Set the font-size for Multiple Heading Elements

Link to the challenge:

When I run your code, I pass all tests. Here are some things to check:

  • Are you on a supported browser version? - freeCodeCamp supports the most recent versions of Chrome, Firefox, Safari, and Edge
  • Does your browser have its own font size settings? - Some OSes (especially for Apple products) will set font sizes when you install a browser.
  • Do you have any extensions running? - Styling extensions may alter the CSS of pages and privacy extensions may prevent scripts (like the tests) from running correctly.
  • Have you tried resetting the challenge and pasting your solution in before rerunning tests? - Every once in a while your session can get in a weird state and cause atypical behavior.

i do all thing, but not working.
so my code is ok. but my browser no.

freecodecamp gives you certification, even if I don’t do this exercise? that is, can I skip this exercise?

thank

The certifications do not require that you do all of the challenges, just the projects.

Just checked and it passes the test on my end with the code you provided.
Maybe you can try in another browser.

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