Learn Basic CSS by Building a Cafe Menu - Step 11

Tell us what’s happening:

Describe your issue in detail here.

Your code so far

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

<!-- User Editable Region -->

    <style property="text-align">
      h1 {
        value: 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 Edg/118.0.2088.57

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 11

Welcome to the community @BaruzAdna !

In this step, it asks us to use the style element in html and, using the following as an example, style the h1.

element {
 property: value;

It is only necessary to enter the above code, with the h1 element and the property for the h1 and its value, nested between the provided style element tags.

1 Like

Hi there and welcome to our community!

Note the syntax for CSS rules, which is given in the challenge description:

element {
 property: value;

You should not be adding anything inside the style tags. The property (i.e. text-align), which you have put inside the opening style tag, should be instead inside the CSS rule, in place of the word property.

1 Like

Welcome to the Forum. :blush:

Here you gave a good trial, but kindly do little change.

When we assign any value in CSS then we assign it into style tag

Kindly put the property-name text-align in place of value.

That is its right place.

Hope you understand.

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