Learn Basic CSS by Building a Cafe Menu - Step 8

Tell us what’s happening:
code at the end is saying “You should not change your existing main element. Make sure you didn’t delete the closing tag.” - on the section part

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
  </head>
  <body>

<!-- User Editable Region -->

    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
    </main>
    <main>
      <section>
      </section>
      </main>

<!-- User Editable Region -->

  </body>
</html>

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.3 Safari/605.1.15

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

Link to the challenge:

You added a second main element and put the section in there. You don’t want to add another main element. You want to put the section element at the end of the existing main element.

Side note: There should only be one main element on a page. So if you find yourself adding more than one main element then you know you are probably doing something wrong :slightly_smiling_face:

Welcome to the community!
This step just requires us to add the section element tags at the end of the main element.
We do not need to add anything else.

Happy coding!

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