This tag is left unclosed. This is a self-closing tag, close it and you’ll pass the challenge.
Always remember to close every tags even if they aren’t self-closing.
When working with a self-closing tag, you failed to close the tag. I said “close the tag” but you didn’t do that.
This is an example of an element with an opening and closing tag:
<title></title>
You can see there’s a “/“ backslash in the closing tag.
To close a self-closing tag all you need is include that backslash in the tag without including a closing tag for example:
In my browser I tried his solution without a backslash and it failed and when I added the backslash it passed so I figured it was a requirement to pass the challenge. I guess there’s a bug somewhere.
The code does pass for me, not sure whether its a prob with my browser now.
Backslash might work for the current problem(maybe), a backslash isn’t always required for self-closing tags, there might be a problem with the tests or the browser.
@srpallab try this approach or if you have adBlockers extensions in your browser I strongly advice you disable the adBlockers for freeCodeCamp as they often interfere with the tests.