Error in the task check

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**
<!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 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0

Challenge: Step 4

Link to the challenge:

Hi there!

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.

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