Step 4 Registration Form issue

Code will not pass step 4 Building a registration Form. Checked in VS Code with no issues. At a loss. https://www.freecodecamp.org/learn/2022/responsive-web-design/learn-html-forms-by-building-a-registration-form/step-4

<head>
    <title>Registration Form</title>
      <link rel="stylesheet" type="text/css" href="styles.css">
  </head>
  <body>
  </body>
6 Likes

We will probably need to see your code before we can help you. Be sure to wrap it in triple back ticks (three back ticks on a line by itself, then paste your code underneath, then on a separate line below your code three more triple back ticks).

You’ve actually done everything right. The error you are getting about a self-closing tag is a bug. While many people do end self-closing tags with /> it is not a requirement in HTML and the test should pass with just >.

So to pass this test you just need to end the <link> tag with /> in order to appease the tests. By the way, I actually opened an issue on this a while ago and it looks like there is a pull request (#45890) in the works to fix it.

4 Likes

That was it. Thank you. Was driving me freaking crazy. lol

1 Like

Thanks that was driving me crazy!! :pray:

1 Like

This is still an issue unfortunately

1 Like

Ya, sometimes these things take longer than expected to get fixed. The pull request is still open but it looks like its very close to being merged.

2 Likes
  <head>
    <title>Registration Form</title>
     <link rel="stylesheet" type="text/css" href="style.css"/>
  </head>
  <body>
  </body>

I have tried it with and without the “/”. Still cant get it to pass.

1 Like

OK, after a few hours of sleep I noticed that I forgot to put an “s” on “style.css”. Should have been “styles.css” . Now it will pass if I close it with “/>”