Learn Basic CSS by Building a Cafe Menu - Step 16

Tell us what’s happening:

I dont have any problem with the quiz. only attribute kinda thing.

what is the purpose of rel attribute?
i know that href are for connecting with other file(css)
but stylesheet, what is it for?

Your code so far


<!-- User Editable Region -->

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

<!-- User Editable Region -->

  
/* file: styles.css */
h1, h2, p {
  text-align: center;
}

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

Challenge Information:

Learn Basic CSS by Building a Cafe Menu - Step 16

1 Like

Hi and welcome.
As far as I know is more of a descriptive kind of tag. It expresses the relation given between two elements.

2 Likes

Hello @rifqilubis,

> The rel attribute defines the relationship between a linked resource and the current document.

Does this help?

Keep up the good progress!

Happy Coding! :slightly_smiling_face:

3 Likes

so in nutshell, like Trondur said. Only as desciptive tag.

thanks for answering, both of you.

3 Likes

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