Step 17, about-the-html-css-category

Tell us what’s happening:
Describe your issue in detail here.
Issue: This is the response I get after nesting a link element in a head element
Response: Your code should have a link element.
Your code so far

/* file: index.html */
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
      <a rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
  <header>
    <h1>CAMPER CAFE</h1>
    <p>Est. 2020</p>
  </header>
  <main>
    <section>
      <h2>Coffee</h2>
    </section>
  </main>
</body>
<html>
/* file: styles.css */
h1, h2, p {
text-align: center;
}
  **Your browser information:**

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

Challenge: Step 17

Link to the challenge:

Hello @Aphil ,

<a></a> --> This is an anchor element in HTML.

<link> --> This is a link element in HTML.

<link href=""> --> **href="your css file's address."** is the syntax to give an address to the browser.>

What we’re learning to do here is , we’re telling the browser
“Hey browser i am linking this document to another one. I will style my elements in that document. When you need to check how i styled them to make them appear on the users screen, go to the address that i mentioned in the link element.”

Solution to that step →

 <head>
    <meta charset="utf-8" />
    <title>Cafe Menu</title>
    <link rel="stylesheet" type="text/css" href="styles.css">
  </head>

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