Trouble with "Set the font-size for Multiple Heading Elements"

Tell us what’s happening:
I added the required style code and ran the check but it tells me each one is wrong. Thought it might be due to typing each on a single line so I reformatted the style code to use multiple lines, like in the video but it still fails, telling me that each element is supposed to be a specific size.

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

This is h1 text

This is h2 text

This is h3 text

This is h4 text

This is h5 text
This is h6 text
```html 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
```
  **Your browser information:**

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

Challenge: Set the font-size for Multiple Heading Elements

Link to the challenge:

Your code ran fine when I tried.

Thank you very much for your help. Must be a browser issue on my side. This happened in another module as well.

1 Like

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