Learn CSS Variables by Building a City Skyline - Step 4

Tell us what’s happening:

I’ve typed out the correct syntax to link my styles.css and several variations, closing tag/no closing tag/etc, but I keep getting the error You should have one void link element. This is the second project I’m having this issue on and I can’t figure out what I’m doing wrong. I skipped the step last time but would like to know what I’m doing wrong so I haven’t skipped this time.

Your code so far

<!DOCTYPE html>
<html lang="en">

<!-- User Editable Region -->

  <head>
    <meta charset="UTF-8"></meta>
    <title>City Skyline</title>
     <link href="styles.css">
  </head>

<!-- User Editable Region -->

  <body>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Variables by Building a City Skyline - Step 4

Welcome back to the forum @vanessarogers

The link element is missing something.

Your link element should have a rel attribute with the value stylesheet .

Also, meta elements do not have a closing tag.

Happy coding

The code that’s linked doesn’t have the rel but I did try it with the rel and still got the error.

Please post your full code.