From 78211f96953bc1a63570f2430cee4ad92c841ce4 Mon Sep 17 00:00:00 2001 From: Jasper Ras Date: Tue, 6 May 2025 23:09:23 +0200 Subject: vault backup: 2025-05-06 23:09:23 --- Link elements.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Link elements.md (limited to 'Link elements.md') 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 -- cgit v1.2.3