9 Applied Accessibility Flashcards
How to make sure Screen Readers (devices that read to the blind) can easily parse the web page for titles and topics.
Use h1, h2, h3 etc.
The screen readers may be set to only read these when the user wants a summary.
They should express a hierarchical relationship of the content.
Any general rules of thumb for using heading numbers?
4 things
Don’t use h1,h2,h3 because you like the size of the font. Use CSS to change the size of the font.
Every page should only have one h1, the main subject of the content.
Higher numbers are subsections
Don’t jump from h2 to h4 as a subheading. This can confused screen readers. Go from h2 to h3.
Additional tags for added accessibility and functionality
(6 tags)
How do they work?
HEADER- Different from head. introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other elements.(table of contents in Wikipedia??)
They can navigate straight to it.
FOOTER- for links, resources, copywriter, notes etc. They can navigate straight to it.
MAIN- wraps the main content (1 per page). Allows “jump to main”
NAV- for the main navigation links. The navigation center. Where it shows things like buy/sell>exercise equipment> treamills.
They can navigate straight to it.
ARTICLE- to wrap independent self contained content (like a book or article or blog post)
SECTION- to group thematically related content (like a chapter or article section)
By default, they basically just like divbut additional semantic meaning.
What does it mean to have “semantic meaning”
To add additional LOGICAL or REFERENCE meaning.
to wrap independent self contained content (like a book or article or blog post)
article>
/article>
to group thematically related content (like a chapter or article section)
section>
/section>
for the main navigation links. The navigation center. Don’t necessarily need if the footer covers it all. They can navigate straight to it.
nav>
/nav>
wraps the main content (1 per page). Allows “jump to main”
main>
/main>
for links, resources, copywriter, notes etc. They can navigate straight to it.
footer>
/footer>
Different from head. introductory content, typically a group of introductory or navigational aids. It may contain some heading elements but also a logo, a search form, an author name, and other elements.(table of contents in Wikipedia??)
header>
/header>
Give the visual impaired an option to listen to text instead of the audio
gives semantic meaning when it wraps sound or audio stream content in your markup
How to add controls?
How to link to an audio file?
audio>
/audio>
to make it controllable
audio controls>
audio id=”meowClip” controls>
source src=”audio/meow.mp3” type=”audio/mpeg”>
source src=”audio/meow.ogg” type=”audio/ogg”>
/audio>
Tags to wrap a chart or figure and it’s caption to give alternative material
figure>
img src=”roundhouseDestruction.jpeg” alt=”Photo of Camper Cat executing a roundhouse kick”>
br>
figcaption>
Master Camper Cat demonstrates proper form of a roundhouse kick.
/figcaption>
/figure>
Figure- The figure> represents self-contained content, potentially with an optional caption, which is specified using the figcaption> element. The figure, its caption, and its contents are referenced as a single unit.
figcaption- The figcaption> represents a caption or legend describing the rest of the contents of its parent figure> element.
To give a label to a specific form input
label for=”name”> input type=”text” id=”name” name=”name”>Name /label>:
In that lesson, we wrapped the radio button input element inside a label element along with the label text in order to make the text clickable. Another way to achieve this is by using the for attribute, as explained in this lesson.
form>
label for=”name”>Name: /label>
input type=”text” id=”name” name=”name”>
/form>
Semantically show the checkbox or radio inputs are part of the same group
Describe/label that set of inputs
fieldset>
legend>Choose one of these three items:/legend>
input id=”one” type=”radio” name=”items” value=”one”>
label for=”one”>Choice One/label>br>
input id=”two” type=”radio” name=”items” value=”two”>
label for=”two”>Choice Two/label>br>
input id=”three” type=”radio” name=”items” value=”three”>
label for=”three”>Choice Three /label>
/fieldset>
legend>
/legend>
Line break
br>