Can't understand what's wrong. Step telling me to set style to the h1 element in the head element but h1 is located in the header not the head

Tell us what’s happening:

  **Your code so far**
<!DOCTYPE html>
<html lang="en">
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
    <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: Step 12

Link to the challenge:

This is HTML element. To style it we need to create something called selector.

You have example of selector syntax in your task.

Selectors should be inside style tag.

So I followed your guidance and got this result which still won’t work. I’ve tried some other combinations of code slightly different in case it was a case of typo.

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

it gets better, but we have some syntax misunderstanding I believe

some HTML element


If i need style for this I’ll code something like

fieldset {
   font-size: 1rem;

and it will be inside style tag

  fieldset {
   font-size: 1rem;

Oh god. I misunderstood the first reply and thought I should place it inside the opening tag like you would with an attribute. Thanks

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