Learn Basic CSS by Building a Cafe Menu - Step 21

Hello. I am currently struggling with this code. I have no idea what to do and I need assistance.

Your code so far

/* file: index.Ext.html */

body {
  background-color: burlywood;
}

h1, h2, p {
  text-align: center;
}
<div>
     

/* file: styles.Ext.css */

body {
  background-color: burlywood;
}

h1, h2, p {
  text-align: center;
}
<div>
     

Your mobile information:

iPhone - iOS16.6

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

Link to the challenge:

It looks like you are trying to use css inside your html, but thats not allowed. Only html goes in the html tab, and only css in the css tab. Its best you reset to get everything back to the way it needs to be

Hello again. I am getting a hint. I need a little assistance with this issue.

Your code so far

/* file: index.Ext.html */

body {
  background-color: burlywood;
}

h1, h2, p {
  text-align: center;
}

/* file: styles.Ext.css */

body {
  background-color: burlywood;
}

h1, h2, p {
  text-align: center;
}

Your mobile information:

iPhone - iOS16.6

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

Link to the challenge:

Gr8 job. Now add another selector of a div with the width attribute of 300px. A div selector is a type of element not a class name so it does not need to start with a dot.
Ex of type selector:

button{ height:78px;}

Why does it look like you are still trying to use css in your html?

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