Tell us what’s happening:
Everything is correct, I receive error in my face.
Hint is: Your
link element should be a self-closing element.
**Your code so far**
<link rel="stylesheet" href="styles.css">
**Your browser information:**
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0
Challenge: Step 4
Link to the challenge:
Although the end slash for void elements is optional (here’s a discussion about it that might help you understand), freeCodeCamp apparently requires it in its lessons, so you should write the link tag with an end slash:
<link rel="stylesheet" href="styles.css"/>
It worked, thanks.
But in previous lessons the was no info about ‘/’ in the end of self closing tag <3
FYI, the forward slash requirement is a bug in the FCC tests and is being worked on. Eventually you will not be required to have a forward slash to pass any tests with self-closing tags.