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**
<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:
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.
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.
makes one wonder if the slash is really an error or if it is necessary