Tell us what’s happening:
I think my code is correct but it keeps ending like “Your
link element should be a self-closing element.”
<link rel="stylesheet" href="styles.css">
**Your browser information:**
User Agent is:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.132 Safari/537.36
Challenge: Step 4
Link to the challenge:
/ at the end of link .
<link rel="stylesheet" href="styles.css" />
Thank you, it’s work but why when I code in VSC it’s work fine without the / at the end of link
I will work since in HTML5 both with or without
/ is fine .
but it is a best practice to use it even for self closing tags (e.g.
It’s actually a bug in the tests, they are too strict. A fix is coming soon!
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.