+ 2
What are rel and stylesheet?
why there is no explanation for these ? can sb show me a list of things which goes into rel ? or others ? there must be a list of them so we can use. how on earth can I find 'em out???
3 ответов
+ 5
you can find nice explanation here
✔️https://www.w3schools.com/tags/att_link_rel.asp
+ 2
'rel' stands for the relationship between the value of the 'href' attribute of a tag and the current page. So, 'rel' would only work if there is an 'href' attribute alongside it.
'stylesheet' means that the document being linked to the webpage is of type CSS, or Cascading Style Sheets. In a nutshell, this is used to design webpages.
Example:
<link rel="stylesheet" href="styles.css">
There are some other values that can go into 'rel' like 'alternate', which says the linked document should be loaded in case the original one fails to do so, 'author', which says that the linked document leads to the author of the page, 'help', which says that the linked document leads to the help page, etc.
Here's a complete list of all values accepted by 'rel': https://www.w3schools.com/tags/att_link_rel.asp
0
thank you guys , now I completely understand it.