Error detected at https://www.freecodecamp.org/espanol/learn/2022/responsive-web-design/learn-css-variables-by-building-a-city-skyline/step-4

Hi guys:

I spent a huge time trying to figure out why I get error at testing my code, and finally got an answer.

At this course & step:

https://www.freecodecamp.org/espanol/learn/2022/responsive-web-design/learn-css-variables-by-building-a-city-skyline/step-4

and using this code:

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

I get:

Congratulations, your code passes. Submit your code to continue.

BUT… there is an error at the closing tag of the link to the stylesheet:

The correct line should be:

    <link rel="stylesheet" href="styles.css">

or:

    <link rel="stylesheet" href="styles.css"/>

but not:

    <link rel="stylesheet" href='styles.css'>/>

What do you think guys?

this is correct one. link tag is self closing tag

1 Like

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