Step 4 i dont know whats wrong with my code

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

  **Your code so far**

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

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0

Challenge: Step 4

Link to the challenge:

What seems to be the issue? Any error messages? Just not understanding something? The more details you give us, the better we can help :slightly_smiling_face:


Might try adding a slash to the end of your <link> since they mention it being a self closing tag. This isn’t technically needed in HTML but I think several of the lessons require it.

That slash was missing

1 Like

but this is wrong, code in vs studio code. i’ve never need to put a slash at the end of link tag. same with other small self closing tags i know like img, hr, br

HTML link tag (w3schools.com)

I think its a bug

It might be used earlier and they just want us to be aware about this.

its just confusing , i want to know why closing tags have ‘/’ at the end

The / is optional. This test was accidentally written to require the /, but a fix is in the works.

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