Keeps saying that link element should be a self-closing tag but I have done that but it is not letting me pass

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

  **Your code so far**
<!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 (Windows NT 6.1; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0

Challenge: Step 4

Link to the challenge:

add a forward slash at the end of the link element , like this />

1 Like

A self closing tags in HTML are the type of [HTML tags] that need not to be closed manually by its closing tag, which means there is no saperate closing tag for it as .

A few examples of self closing tags are <img />, <input />, <br />, <hr />.

Well up until now I did not had the need to use / in a self closing tag

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