Hypertext Markup Language
I like to get tipsy and do HTML when it's sunny.
<cite><details><summary> to set the title. Use <details open> to make it start unfolded.<dfn><abbr> or <acronym>.<figure><img> in there and use <figcaption> for a caption. Not only for images, or single images!<kbd><ruby>download attribute<a href=“[link to file]” download> you can specify that a link is for downloading, rather than loading, by adding the download attribute.=“[filename]” if you want it to be downloaded with a different filename that the one it has on your server.alternate stylesheetView > Page Style (or Alt v y). You can also have a base sheet that is applied to all.rel attributealternate: see above for it's use with stylesheets.external for external links.help.next and prev for pages in a sequence, like blog posts.noopener, though I think this is default in browsers now?tag.CSP is a way of verifying externally hosted assets on websites.
Pretty cool thing to get into the habit of use/doing.
checkers:
Kinda cool, but I haven't had much luck with it, and the syntax is yuck, but you can provide multiple images in different sizes and fits and the browser can grab the best one for the readers situation. So small images for mobile, different dimensions for portrait or landscape modes…
There are two ways to do this:
img element, with the srcset attribute.picture element, which is like an equibilant of the video and aaudio elements.Rough notes:
IDs have to start with a letter, or they will be a pain to target in the CSS file.
Some useful roles:
search<form role=“search”>tablist,tab, tabpaneltablist is the container, which contains tabs, which when clicked display tabpanels.tree, treeitem<ul role=“tree”><li role=“treeitem”> …ASCII Art is obviously a pain for screenreader users.
aria-hidden=“true” to the <pre> element, which will hide it.aria-label=“[text]” to tell the screenreader what the text says.role=“img” to tell the screenreader.<figure> you might want to use the aria-labelledby=“[id]” or aria-describedby=“[id]” attributes to point to the id on an element that has a description, for example a <figcaption>You can change that way things like animations play for people that have set certain preferences i ntheir browser or OS.
Number one thing I forget is to check this page!
To nest a list, the sublist needs to be inside an <li> element, not the <ul>, <ol>, or <dl>. Seems ugly to me, but makes a kind of sense. So:
<ul> <li></li> <li></li> <li> <ul> <li></li> <li></li> </ul> </li> </ul>
I'm always forgetting that <ins> is the element that pairs with <del>. Keep thinking it'll be something like replace (rel, rep??)