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.”
<!DOCTYPE html>
<html>
<head>
<title>Registration Form</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
</body>
</html>
**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:
add /
at the end of link .
<link rel="stylesheet" href="styles.css" />
1 Like
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.
)
1 Like
ILM
5
It’s actually a bug in the tests, they are too strict. A fix is coming soon!
1 Like
system
Closed
6
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.