Tell us what’s happening:
This Link “close tag” is not working even when the code is correct.
**Your code so far**
<link rel="stylesheet" type="text/css" href="styles.css">
**Your browser information:**
User Agent is:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.96.36.199 Safari/537.36
Challenge: Step 4
Link to the challenge:
There are two issues here:
You have that extra space in there. While HTML may not care, it is unusual and the test doesn’t like it. The test can’t account for every accountable variation, it expects standard formatting.
Next, the error message:
link element should be a self-closing element.
At various points of HTML history the rules for self-closing tags have changed. Sometimes there was a requirement for a slash (
/) before the final angle bracket (’>’) and sometimes it is forbidden. In HTML5 it is optional. For whatever reason, the test is requiring it.
If I fix those two things, the code passes for me.
Thank you. I used the forward slash and it passed me .