Learn CSS Variables by Building a City Skyline - Step 4

Tell us what’s happening:

every element required is coded inside the head element but for some reason its telling me that “You should have one void link element”. I don’t understand this, how should I fix this?

Your code so far

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

<!-- User Editable Region -->

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

<!-- User Editable Region -->

  <body>
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) 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

I am not sure if this is correct but maybe the order of your meta and title elements inside the head matter?

I just did it like that and it passed.

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

Hi and welcome to the forum!
Your code passes for me. Try resetting the step and adding your code again.
Hope this helps!

It is because of the alignment I believe as charset defines that their are languages other than text, the rel defines that the above html should be changed as per CSS style sheet, I believe

1 Like