Why is a '/' needed to close the link self closing element in Step 4 of Building Registration Form?

Tell us what’s happening:
I was stuck and as I looked for a solution I found that I needed a ‘/’ to close the link element.
Why is this self closing element not closing like the others? For example, when closing img one just does no ‘/’

  **Your code so far**
<!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 (X11; CrOS x86_64 14588.98.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.0.0 Safari/537.36

Challenge: Step 4

Link to the challenge:

The FCC teach the basics of coding, and for beginners they need to know that Self-closing elements need the / at the end, even if you don’t need to use it but they need to know it

1 Like

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