Type attribute inside link element should have text/css value but does not work. HELP!

Tell us what’s happening:
instruction says :

type attribute inside link element should have text/css value but does not work. HELP!

  **Your code so far**
/* file: index.html */
<!DOCTYPE html>
<html>
<head>
  <link type ="text/css" rel="stylesheet" href = "styles.css">
  <meta charset="utf-8" />
  <title>Cafe Menu</title>
</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.5005.63 Safari/537.36

Challenge: Step 17

Link to the challenge:

make the link element a self closing tag like this <link />

It is still not working. The hint says

Hint

Your link element should have a type attribute with the value text/css.

you have extra spaces in href attribute

1 Like