please whio can explain to me what are type and rel attributes in css
type attribute describes the MIME Type. What sort of media is the resource?
The above tells the browser to expect plain text media that conforms to CSS specifications.
rel attribute conveys to the browser what sort of relationship the resource has to document.
Hi, mtf. I understand that the “text/css” type conveys the use of plain text media, but isn’t it redundant to require a rel value, when the linked file value specified in the href attribute is a .css file? Are there other possibilities of a rel value, other than “stylesheet”, when a .css file is used? Maybe I’m getting ahead of myself and it will be further explained. Thanks for the help!
Note the list of types which is not to be confused with MIME Type, but relationship type. The one thing that all have in common is that a link must be created for the keyword.
<link rel="alternate" href="//example.com/text_alternate.html"> <link rel="prev" href="/feature/page_4.html" title="Page 4 (prev)"> <link rel="next" href="/feature/page_6.html" title="Page 6 (next)">
Perfect - thanks for the info. That’s exactly what I wanted to know.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.