Learn Basic CSS by Building a Cafe Menu - Step 16

How do I fix in the link

Your code so far

/* file: index.Ext.html */
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <rel =stylesheet> href ="https://style.css.com
  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>
/* file: styles.Ext.css */
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <rel =stylesheet> href ="https://style.css.com
  </head>
  <body>
    <main>
      <h1>CAMPER CAFE</h1>
      <p>Est. 2020</p>
      <section>
        <h2>Coffee</h2>
      </section>
    </main>
  </body>
</html>

Your mobile information:

itel W6004 - Android 9 - Android SDK 28

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

Link to the challenge:

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Nest a self-closing link element in the head element. Give it a rel attribute value stylesheet and an href attribute value of styles.css .

You should be creating a link element with two attributes. The link element is self-closing so only needs one tag. Inside that tag you add the above attributes, using the usual syntax attribute="value", separating each attribute with a space.

I don’t get
Please
Explain more

Firstly, remove the line of code below the title element, because it’s not correct.
You have a meta element with one attribute, which you can use as a guide to create your link element.
Just like the meta element, the link element is self-closing, so (under the title element) create a link tag using the same syntax, but instead of a charset attribute with the value utf-8, add a rel attribute with the value stylesheet.
Then, directly next to the rel attribute (still inside the link element) add a space and then an href attribute with the value styles.css.

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