Learn Basic CSS by Building a Cafe Menu - Step 1

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

<!-- User Editable Region -->

<!DOCTYPE html><html lang="en">

<!-- User Editable Region -->

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/117.0

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

Link to the challenge:

Your html element needs a closing tag. The entire HTML document will be nested inside the html element.

<!doctype html>

That’s not correct according to W3C html validator.

I can’t believe something this basic is keeping me from progressing on the lesson.

You have a DOCTYPE declaration at the very top of your document, but you should then also have an html element, which has an opening html tag and a closing html tag. You will then be nesting all other HTML elements for this project between the two html tags.
You have the opening tag but have not added a closing tag.

Most HTML elements have both an opening and closing tag. The exceptions are elements such as img and input (amongst others).


<h1>This is a heading element</h1>
<p>This is a paragraph element</p>
<div>This is a div element</div>

I can’t even copy and paste the code I have in a reply in this forum

If you want to paste any code into a forum post, you should use the Preformatted Text Tool (</> icon or CTRL+e). This creates two sets of triple backticks, and you paste your code between them, so that it displays correctly on the forum.

<!DOCTYPE html>
<html lang="en">

This is what I have (above).

Yes, that should work. If it’s still not passing, then the following should help:

  1. Hit the Reset button
  2. Hard refresh the page with CTRL+F5
  3. Copy and paste the code from your post above
  4. Click Check your code

If it’s still not passing then you may need to disable any active browser extensions, as they can interfere with the FCC tests. Alternatively, you can try a different browser.

Hope that helps!

Yes, it passed but I’ll make a note of those tips. Thanks so much for your help!