The test is telling me "Your link element should be a self-closing element."... and I can't figure it out.. didn't I close the <link>?

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
<!DOCTYPE html>
<html>
<head>
  <title>Registration Form</title>
  <link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36

Challenge: Step 4

Link to the challenge:

link is a self-closing tag so put /> at the end

Thanks! Weird, as I even copied text from a previous assignment which didn’t have that…

I got stuck at the same point, checked with w3schools and there is no /
How confusing…

1 Like

yeah thats true u dont need to put /, but in this case it was nessesery to go on

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