Code Error In HTML-CSS

Tell us what’s happening:
This Link “close tag” is not working even when the code is correct.

  **Your code so far**
<!DOCTYPE html>

<head >
  <link rel="stylesheet" type="text/css" href="styles.css">
  <title>Registration Form</title>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Step 4

Link to the challenge:

There are two issues here:

<head >

You have that extra space in there. While HTML may not care, it is unusual and the test doesn’t like it. The test can’t account for every accountable variation, it expects standard formatting.

Next, the error message:

Your link element should be a self-closing element.

At various points of HTML history the rules for self-closing tags have changed. Sometimes there was a requirement for a slash (/) before the final angle bracket (’>’) and sometimes it is forbidden. In HTML5 it is optional. For whatever reason, the test is requiring it.

If I fix those two things, the code passes for me.

Thank you. I used the forward slash and it passed me .

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