Learn HTML Forms I can't pass step 4?

Tell us what’s happening:
In step 4 I get error link element is self-enclosing without any reason.
The step 4 is:
As I thick it is correct I guess
please help me to get rid out of it.

  **Your code so far**

<!DOCTYPE html>
  <title>Registration Form</title>
  <link rel="stylesheet" text="text/css" href="style.css">
  **Your browser information:**

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

Challenge: Step 4

Link to the challenge:

1 Like

It is styles.css not style.css.
You have to put a slash(/)before the closing > because the tests are a bit strict. You have also given a text attribute instead of a type attribute.

1 Like

That slash (/) tip helped me. thanks.


Hey, I do not understand why I have to put slash(/) before the closing >. I wrote the same code for previous test -without using slash- and it passed.


I have the same question. I have also been checking other online sources, and none of these include the (/) in the normal syntax for self-closing elements.

1 Like

makes one wonder if the slash is really an error or if it is necessary

1 Like

I think It’s an error.


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