Error :Your link element should be a self-closing element

my code is

 <title>Registration Form</title>

<link rel="stylesheet" type="text/css" href="style.css">

error

Test

Sorry, your code does not pass. You’re getting there.

Hint

Your link element should be a self-closing element.

  **Your code so far**

<!DOCTYPE html>
<html>


<head>
   <title>Registration Form</title>
  <link rel="stylesheet" type="text/css" href="style.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/101.0.4951.67 Safari/537.36

Challenge: Step 4

Link to the challenge:

2 Likes

saaaaame. waiting for an answer as well.

EDIT. found the solution. although not sure how it works.
Self closing elements such as “link” should be written as <link />. meaning you have forgotten to incloude the character / at the end of the link element.

Hopefully this can help you understand.: HTML5 Reference

3 Likes

thank you for you’r solution