I Learn Basic CSS by Building a Cafe Menu - Step 18

I need help with the hint I am having trouble understanding. It says to use a body element. I’m really confused. Here is the code.


Tell us what’s happening:
Describe your issue in detail here.

Your code so far

/* file: index.Ext.html */

/* file style.css */
<body> h1, h2, p {
   text-align: center;
}
{ background-color: brown;
}
 </body>

/* file: styles.Ext.css */

/* file style.css */
<body> h1, h2, p {
   text-align: center;
}
{ background-color: brown;
}
 </body>

Your mobile information:

iPhone - iOS16.6

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

Link to the challenge:

that is html. only in html body is <body>

in css it’s different

body
{
your code here;
}

Thanks man! I appreciate it. I’m new to coding and my dad actually happens to be a software engineer himself. So that’s quite an advantage.

It gave me an error again. Ughh this is so frustrating as a coder.

Here is the code:

you should leave your first selector of your elements as it is and add a completely new second one underneath using only the body selector with the background-color attribute.

2 Likes

Ok. Thank you everyone for your patience.

1 Like

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