Learn CSS Grid by Building a Magazine - Step 2

Tell us what’s happening:

I don’t know what’s the prob like I linked all the thing properly but it says “ Your three link elements should have a rel attribute with the value stylesheet.”

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">

<!-- User Editable Region -->

  <head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Magazine</title>
    <link href="https://fonts.googleapis.com/css?family=Anton%7CBaskervville%7CRaleway&display=swap">
    <link href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
    <link rel="stylesheet" href="styles.css">
  </head>

<!-- User Editable Region -->

  <body>
  </body>
</html>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Safari/605.1.15

Challenge Information:

Learn CSS Grid by Building a Magazine - Step 2

Your three link elements do not all have a rel attribute.

2 Likes

The issue is that the <link> elements for the stylesheets in your code are missing the required rel="stylesheet" attribute. The rel attribute tells the browser the relationship between the current document and the linked resource, which is mandatory for stylesheets.

No, like I do have rel attribute saying stylesheet.

Where is the rel attribute here?

Where is the rel attribute here?

1 Like

Ohh I thought we don’t need to put that on these links. Thank you.