Registration Form Step 4 (self closing tag style)

I was getting stuck at this stage (kept telling me that link is self closing) so I decided to run this in VS Code with my own styles.css file and it works fine. I discovered that it was looking for ‘/>’ at the end instead of ‘>’

According to other forums either of these works but is one preferred over the other as an industry standard?

<!DOCTYPE html>
<html>
<head>
  <title>Registration Form</title>
  <link rel="stylesheet" href="styles.css">
</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/103.0.5060.114 Safari/537.36

Challenge: Step 4

Link to the challenge:

As an industry standard both are acceptable. Also, your observation of the tests having instances of wanting one over the other does happen sometimes. I’ve run into this too.

I think that it is the fact that we become aware of both and that either may come up in a future project or career is just knowledge one must maintain.

Like the tests variations the real world application may call for either one.
That’s a great question!