Learn Basic CSS by Building a Cafe Menu - Step 14

Tell us what’s happening:

i don’t know how to solve it

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <style>
      h1, h2, p {
        text-align: center;
      }
    </style>
  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>
/* file: styles.css */

/* User Editable Region */

<style file="styles.css">h1,h2,p

/* User Editable Region */


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36 OPR/104.0.0.0

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 14

External CSS Stylesheets – How to Link CSS to HTML and Import into Head
Start by rewriting the styles you have created into the styles.css
put all the styles in a separate file and link to it.

Welcome to the community @raniahannanmy !

[quote="raniahannanmy, post:1, topic:650575"]
<style>
  h1, h2, p {
    text-align: center;
  }
</style>
[/quote]

Above is how we begin this step.

It is asking us to copy only the complete code, as it is, from within the style element.
We then paste it on the blank line provided in the new CSS file.

We are able to access the CSS file at the top of the instructions.

I hope this helps you!

Happy coding!

1 Like