Learn Basic CSS by Building a Cafe Menu - Step 1

The code is not working, I’m not sure how I entered it wrong. I went back to the Cat Photo App for guidance and I did it the same way it’s on there and it’s still wrong? It says " You should have an opening <html> tag with a lang attribute of en ." and I do, please see my code below.

Your code so far


<!-- User Editable Region -->

<!DOCTYPE html>

<html lang="en"</html>

<!-- User Editable Region -->


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.2 Safari/605.1.15

Challenge: Learn Basic CSS by Building a Cafe Menu - Step 1

Link to the challenge:

Hi there and welcome to the forum!

HTML elements usually have an opening and closing tag. The exception is self-closing elements, which you will come to in the next few lessons.
An opening tag has the syntax <element> and a closing tag has the syntax </element>.
Your opening html tag is not quite correct.

Thanks for your reply. I figured it out. The lang= attribute is enclosed in the html bracket
ex:
I was closing the html at the beginning making the attribute a text and that’s where I was getting stumped, meaning I was missing the >. (for anyone else that gets confused.)
Edit: Doesn’t let me show the sample answer :frowning:

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