Learn Basic CSS by Building a Cafe Menu - Step 11

Tell us what’s happening:
Describe your issue in detail here.
The style element gives me issue
Your code so far

<!DOCTYPE html>
<html lang="en">
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
      element{        property: value;
      <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: Learn Basic CSS by Building a Cafe Menu - Step 11

Link to the challenge:

Assuming you’re trying to complete these instructions:
Center your h1 element by setting its text-align property to the value center.
You will want to follow the details of the style you wrote but instead, change element to h1 , change property to text-align and then the value would be center.

This is the convention you would follow to isolate any element - you could do img, h1, p, anything that’s an html element. The post below says all of this in a different way which might be helpful as well.

@Staroy you need follow the instruction carefully
if you are new to coding world let me explained in short with example:

  • element : <p > - paragraph is the element inside the body

  • property : display - the display is property to apply grid,flex,etc

  • value : flex - the flex is the value of the display

    display: flex;

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