Open jrhorn424 opened 9 years ago
Related #11
From an accessibility perspective, this probably includes using forms for input whenever possible. Screen readers grok forms.
I want to note that there was a point of confusion with this:
Never use ids for CSS, only JS (this follows Sass style guides and default linter config)
This was parsed by one developer as recently as today as: "Only use IDs for JavaScript, don't use classes". Logically, this is an error; it's not a proper inverse.
Here's the thrust of the mistake:
- use ids only in JS // bad
+ use ids in JS only // good
Anyway, it bears being super careful of this when speaking the rule.
I would love to add a section about accessibility either in this lesson or in https://github.com/ga-wdi-boston/html-css-layout. Writing accessible HTML is in demand (especially for healthcare and other government sites that have to meet strict requirements), and it often leads to better UI anyway (don't put a thing that blinks more than 3x a second on your screen. No one wants that, even if it won't cause a seizure.) Some quick tips can lead to better HTML/CSS and more accessible sites. I'm curious about your thoughts and where you think it would best fit.
:robot: :speaking_head: it probably needs to be repeated several times. So, it likely belongs in many/most/all html/[s]css material.
@MicFin Feel free to contribute by opening an issue with any best practices you feel are missing, either before or after delivery, or both. Thanks!
I suggested the following:
id
s for CSS, only JS (this follows Sass style guides and default linter config)These rules may be hard to follow initially, but will become easy to follow with Sass.