What does <link> tag do besides including stylesheets?

前端 未结 6 1200
南笙
南笙 2021-02-19 20:31

I know that the HTML tag is used for attatching stylesheets, but looking at the W3CSchools tag reference, it has many other values for the rel attribute. I\'ve looked

6条回答
  •  抹茶落季
    2021-02-19 21:04

    I know two prominent common uses:

    • With rel="stylesheet" to reference external CSS style sheets

    • With rel="favicon" to reference browser favicons

    Additionally, there are

    • Forward and reverse links (rel="next")

    • Links to alternative resources for search engines (rel="alternate")

    Check the W3C Reference: Links in HTML documents for details on stylesheet, and the latter two.

提交回复
热议问题