Tell us what’s happening:
Can someone please tell me what I’m doing wrong here? It says my html element needs a closing tag even though it is there or how else do I close it?
Your code so far
<!-- User Editable Region -->
<!DOCTYPE html>
<html lang="eng">
<!-- User Editable Region -->
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0
Challenge: Learn CSS Colors by Building a Set of Colored Markers - Step 1
Link to the challenge:
Your lang attribute does not match what the challenge is asking for. I would double check that, and see what the lang needs to be
I dont see a closing html tag in your code. A closing tag looks like </>
with the element name coming after the slash
I’ve tried all variation I can think of but none of them work. when I do this : ‘ lang=“eng”’ the values inside the element get greyed out. When I do this ‘<html lang=“eng”’ the html in the closing tag becomes red and the code doesn’t pass still, the reason I didn’t put a closing tag before is because I thought html elements are self-closing. Here is what the challenge says; As you’ve seen in the previous projects, webpages should start with a DOCTYPE html
declaration, followed by an html
element.
Add a DOCTYPE html
declaration at the top of the document, and an html
element after that. Give the html
element a lang
attribute with en
as its value.
You might have messed up the lang=“eng” part, and you also forgot the closing tag, hope this explanation helps.
I’ve tried all of these none of them work