html
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
html [2020/10/25 13:37] – ↷ Links adapted because of a move operation rjt | html [2024/07/19 00:15] (current) – [Cool HTML Elements] ruby rjt | ||
---|---|---|---|
Line 12: | Line 12: | ||
: For specifying first instance of a term. Use with ''< | : For specifying first instance of a term. Use with ''< | ||
; ''< | ; ''< | ||
- | : For images associated stuffs. Put a regular 'ol ''< | + | : For images associated stuffs. Put a regular 'ol ''< |
; ''< | ; ''< | ||
: For keyboard / button instructions. | : For keyboard / button instructions. | ||
+ | ; ''< | ||
+ | : For rendering annotations above other text. Fun, but requires [[https:// | ||
===== Other Cool Things ===== | ===== Other Cool Things ===== | ||
Line 23: | Line 25: | ||
: You can specify alternative appearances for you page, which in [[firefox]] are accessed via '' | : You can specify alternative appearances for you page, which in [[firefox]] are accessed via '' | ||
: [[https:// | : [[https:// | ||
+ | : [[web_browser# | ||
; '' | ; '' | ||
: I always forget about this one. Some cool values are: | : I always forget about this one. Some cool values are: | ||
Line 44: | Line 47: | ||
* https:// | * https:// | ||
- | {{tag> | + | ==== Alternate Images ==== |
+ | |||
+ | Kinda cool, but I haven' | ||
+ | |||
+ | There are two ways to do this: | ||
+ | |||
+ | - A regular '' | ||
+ | - A '' | ||
+ | |||
+ | Rough notes: | ||
+ | |||
+ | * srcset in img best support | ||
+ | * srcset leaves choice to browser, picture is for control | ||
+ | * srcset happens on page load, picture can change on the fly | ||
+ | * srcset attribute in img element | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | ===== Not-Cool Things ===== | ||
+ | |||
+ | IDs have to start with a letter, or they will be a pain to target in the [[CSS]] file. | ||
+ | |||
+ | ==== The HTML Crimes ==== | ||
+ | |||
+ | * [[wp> | ||
+ | |||
+ | ===== Accessibility ===== | ||
+ | |||
+ | ==== WAI-ARIA ==== | ||
+ | |||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | Some useful '' | ||
+ | |||
+ | ; '' | ||
+ | : Eg: ''< | ||
+ | ; '' | ||
+ | : '' | ||
+ | ; '' | ||
+ | : For lists that can be collapsed and expanded. | ||
+ | : Eg: ''< | ||
+ | |||
+ | ==== Media ==== | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | === ASCII Art === | ||
+ | |||
+ | [[ASCII Art]] is obviously a pain for [[screenreader]] users. | ||
+ | |||
+ | * If it's just decorative, you could add '' | ||
+ | * If you're using ASCII Art to represent text you could add '' | ||
+ | * If it's an image you can use '' | ||
+ | * If your drawing' | ||
+ | |||
+ | ==== prefers-reduced-motion ==== | ||
+ | |||
+ | You can change that way things like animations play for people that have set certain preferences i ntheir browser or OS. | ||
+ | |||
+ | * https:// | ||
+ | |||
+ | ===== Things I Forget ===== | ||
+ | |||
+ | **Number one thing I forget is to check this page!** | ||
+ | |||
+ | To nest a list, the sublist needs to be inside an ''< | ||
+ | |||
+ | <code html> | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | I'm always forgetting that ''< | ||
+ | |||
+ | ===== See Also ===== | ||
+ | |||
+ | * [[html_editor]] | ||
+ | * [[css]] | ||
+ | |||
+ | {{tag>accessibility guide HTML hypermedia |
html.1603593463.txt.gz · Last modified: 2020/10/25 13:37 by rjt