Learn Basic CSS by Building a Cafe Menu - Step 11

Tell us what’s happening:

I don’t understand which is the problem, i’ve searched on websites, asked an ai and it’s all good, but somehow on freecodecamp and tells me it’s incorrect and that i should have an h1 selector in the style element. Please help me

Your code so far

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

<!-- User Editable Region -->

     h1 {
      text-align: center;

<!-- User Editable Region -->

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 11

HI @rossinicola828 !

Welcome to the forum!

You are missing the closing bracket here

word of caution, be super careful with AI tools
because unfortunately, they don’t always get it right and miss things like I just pointed out

hope that helps

Thank you so much for helping me, have a great day!

1 Like