Says code is wrong

Tell us what’s happening:
Describe your issue in detail here.
I get an error saying “Your link element should be a self-closing element.” Which it is and I cannot see any other error that is causing this?

  **Your code so far**
<!DOCTYPE html>
  <title>Registration Form</title>
  <link rel="stylesheet" type="text/css" href="styles.css">

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

Try closing your link tag like so />

Thanks. That did work but is not the normal way to close a link tag and normally closing it with just the > has worked on other prior tests. It is also not shown that way in other examples on Google as I checked many html examples to try to find the answer.

yeah self closing tags can be closed with > or />

1 Like

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