diff options
Diffstat (limited to 'Link elements.md')
-rw-r--r-- | Link elements.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Link elements.md b/Link elements.md new file mode 100644 index 0000000..0952096 --- /dev/null +++ b/Link elements.md @@ -0,0 +1,20 @@ +--- +tags: + - html + - web +--- +`rel` stands for relationship, all `link` elements must have a `href` attribute. + +`rel="stylesheet"` for css + +following links have `sizes` (e.g "16x16 32x32") and `type` (e.g "image/png"). + +`rel="icon"` for favicon +`rel="apple-touch-icon"` for iOS devices home-screen pins +`rel="mask-icon"` for pinned tabs on safari + +`rel="alternate"` for alternate versions of the site +- translations: `hreflang` must be present +- mime types: `type` + +`rel="canonical"` to use if you have alternates; `href` specifies the main website.
\ No newline at end of file |