html
This is an old revision of the document!
Table of Contents
HTML
Hypertext Markup Language
I like to get tipsy and do HTML when it's sunny.
Cool HTML Elements
-
<cite> - For titles of works.
-
<details> - For sections of stuff you can show/hide. Added a
<summary>to set the title. Use<details open>to make it start unfolded. -
<dfn> - For specifying first instance of a term. Use with
<abbr>or<acronym>. -
<figure> - For images associated stuffs. Put a regular 'ol
<img>in there and use<figcaption>for a caption. -
<kbd> - For keyboard / button instructions.
Other Cool Things
-
downloadattribute - With
<a href=“[link to file]” download>you can specify that a link is for downloading, rather than loading, by adding thedownloadattribute. - This can also be followed by a
=“[filename]”if you want it to be downloaded with a different filename that the one it has on your server. -
alternate stylesheet - You can specify alternative appearances for you page, which in Firefox are accessed via
View > Page Style(orAlt v y). You can also have a base sheet that is applied to all. - https://developer.mozilla.org/en-US/docs/Web/CSS/Alternative_style_sheets
-
relattribute - I always forget about this one. Some cool values are:
alternate: see above for it's use with stylesheets.externalfor external links.help.nextandprevfor pages in a sequence, like blog posts.noopener, though I think this is default in browsers now?tag.
- https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel
Content Security Policy
CSP is a way of verifying externally hosted assets on websites.
Pretty cool thing to get into the habit of use/doing.
checkers:
html.1604282747.txt.gz · Last modified: 2020/11/02 13:05 by rjt
