diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-05-06 23:09:23 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-05-06 23:09:23 +0200 |
commit | 78211f96953bc1a63570f2430cee4ad92c841ce4 (patch) | |
tree | 614db0456636442c7ef250f106f9f8b1d04e01e6 /Link elements.md | |
parent | bb5c734d7445097e94c4a602f5ce066a836dbead (diff) |
vault backup: 2025-05-06 23:09:23
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 |