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

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

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
  <link rel="stylesheet" type="text/css" href="style.css"></link>
    <h1>CAMPER CAFE</h1>
    <p>Est. 2020</p>
/* 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.5005.63 Safari/537.36 Edg/102.0.1245.39

Challenge: Step 17

Link to the challenge:

Welcome to the Forums :wave:

The href for the link is styles.css and not style.css.

You also dont need the closing </link> tag because a link element is a self closing element and self closing elements do not require a closing tag…

1 Like

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