Self link element issue

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

  **Your code so far**
 in the code i have closed the link element as the self-closing element, still it is showing me an error of please: 

Sorry, your code does not pass. You’re getting there.
Your link element should be a self-closing element.
I have tried to resolve the issue already countless times.

<!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:

Try MOD EDIT: SOLUTION REDACTED (without space between the / and the < and >. Had to do this otherwise the forum thinks I’m typing live code) - I think you’re supposed to use " instead of '. and adding a backslash before the final > fixed some issues for me, which is kind of weird since I never use the backslash anyway in Visual Studio Code and my code always works. I believe the curriculum also never teaches you to do that. I had to ask around on Discord to fix this one

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

2 Likes

Hey thanks! it worked for me

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