I become the error" Your link element should be a self-closing element."

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) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36

Challenge: Step 4

Link to the challenge:

Same thing is happening to me. No matter what I do, it doesn’t identify it as self-closed

For this, ask yourself… what is a “self-closing” tag? It should have been covered.

If you search the forum, this has been encountered a few times. TLDR: the / on the closing > is optional for self closing elements, but this one test is expecting it.

7 Likes

yea I figured it out after just going on the next step but I never encountered before that you could add / at a self closing tag ,appreciate the reply tho

3 Likes

I thought I was losing my mind, thank you.

Ohh I see, thanks a lot! That’s very simple, I thought it was the same without it.

1 Like

Thank You! I was so stuck in this hahaha

Thank You i just needed to do it like this:
Mod Edit: SOLUTION REDACTED

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.