Step 4 Registration Form (HTML <head> wrong answer)

This code does not pass. Why?
I can’t understand what’s wrong… Could someone help me, please?)

Here is the task:

Add a title element to the head , and give your project a title of Registration Form . Also, nest a self-closing link element in the head element. Give it a rel attribute value of stylesheet , a type attribute value of text/css , and an href attribute value of styles.css .

<!DOCTYPE html>
<html>
<head>
  <title>Registration Form</title>
  <link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
</body>
</html>

Browser information:

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

Challenge: Step 4

Link to the challenge:

You should add a backslash( /) before the closing > of the link element.

The tests are a bit too strict here and requires a backslash. While writing code by yourself a backslash is not required in the link element.

1 Like

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