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
<link rel="stylesheet" type="text/css" href="styles.css">
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.
That was it. Thank you. Was driving me freaking crazy. lol
Thanks that was driving me crazy!!
This is still an issue unfortunately
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.
<link rel="stylesheet" type="text/css" href="style.css"/>
I have tried it with and without the “/”. Still cant get it to pass.
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 “/>”
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.