Self Closing TAG - Step 4 - Registration Form

On this step is asked to

nest a self-closing link element

From what it is explained in the course some TAG’s are self closed like:

<img src=”...”>

and is only necessary the openning TAG.
However on this step the validation is only possible if you add a “/” at the end of the link element like so:

  <link rel="stylesheet" href="styles.css"/>

Until now the “/” was not required for a self closing TAG.
What is the difference?

  **Your code so far**
<!DOCTYPE html>
  <title>Registration Form</title>
  <link rel="stylesheet" href="styles.css">
  **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.66 Safari/537.36 Edg/103.0.1264.44

Challenge: Step 4

Link to the challenge:


There’s a problem with the test for this step, which is being too strict in insisting on the forward slash to close the element.

There’s an open issue for this problem.

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