Learn Basic CSS by Building a Cafe Menu - Step 12

It tells me I should have an h1 selector in the style element. But I don’t think I understand

or in this new question and combining the two. This is what I have so far.

<style h1{text-align: center;}>

  **Your code so far**
<!DOCTYPE html>
<html lang="en">
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
  <h1><style h1{text-align: center;}>
    <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/103.0.5060.134 Safari/537.36 Edg/103.0.1264.71

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

Link to the challenge:

Hi @jbwxz87 !

I would reset the lesson because you have a few errors.

Here is your starting code.


Inside the style tags, make sure to only add css.

styles go inside here

You did this part correctly

But where you went wrong is that you tried to place it inside the opening style tag. And then you created another h1 element.

This is incorrect

Do not create any new h1 elements.
Make sure to place your styles where I showed you earlier.

Hope that helps! :slight_smile:

Now I see. Much thanks!

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