Saintapedia:Accessibility

From Saintapedia
Revision as of 14:55, 31 January 2022 by >Tomoneill (add Disability in America)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
File:Disability in America.png
Disability in America

Web accessibility is the goal of making web pages easier to navigate and read. While this is primarily intended to assist those with disabilities, it can be helpful to all readers. Articles adhering to them are easier to read and edit for everyone.

Color

Derived from Wikipedia:Manual of Style/AccessibilityWikipedia Logo.png

Color recommendations

Prose text should never be manually colored. This will allow links to be clearly identifiable as a link to readers.

Articles that use color should keep accessibility in mind, as follows:

  • Ensure that color is not the only method used to convey important information. Especially, do not use colored text or background unless its status is also indicated using another method such as an accessible symbol matched to a legend, or footnote labelsWikipedia Logo.png. Otherwise, blind users or readers accessing Wikipedia through a printout or device without a color screen will not receive that information.
  • Links should clearly be identifiable as a link to our readers.
  • Some readers of Powerpedia are partially or fully color blind. Ensure the contrast of the text with its background reaches at least WCAG (web content accessibility guidelines) 2.0's AA level, and AAA level when feasible. Here is a selection of tools that can be used to check that the contrast is correct:
    • The Color Contrast Analyser enables you to pick colors on the page, and review their contrast thoroughly. However, be sure to only use the up-to-date "luminosity" algorithm, and not the "color brightness/difference" which is outdated.
    • You can also use Snook's color contrast tool, which is entirely up-to-date.
    • Several other tools exist on the web, but check if they are up-to-date before using them. Several tools are based on WCAG 1.0's algorithm, while the reference is now WCAG 2.0's algorithm. If the tool doesn't specifically mention that it is based on WCAG 2.0, assume that it is outdated.
  • Additional tools can be used to help produce graphical charts and color schemes for maps and the like. These tools are not accurate means to review contrast accessibility, but they can be helpful for specific tasks.
  • If an article overuses colors, and you don't know how to fix it yourself, you can ask for help from other editors. Place {{Overcolored}} on the top of the article:

Recommendations from U.S. Access Board

The minimum accessible requirements just focus on foreground and background contrast, so that is not much for a color scheme on its own. Once nice thing about the metric in WCAG 2.0 (luminosity contrast ratio of 4.5:1) is that it implicitly address colorblindness. For more information, please see: http://www.w3.org/TR/UNDERSTANDING-WCAG20/visual-audio-contrast-contrast.html

If you want a web page with both black and white text (foreground) on a single background color, it turns out that there is only a narrow range of background that you can use. For a true grey background, I think there are only two values that work to provide the required 4.5:1 contrast ratio.

There is a terrific resource for maps that can be used for accessible color schemes in general. See Color Brewer 2.0, color advice for cartography at the following URL: http://colorbrewer2.org/

Be sure to check the option for “colorblind safe”.

Color contrast

Mark

The <mark> HTML tag is being evaluated to improve accessibility of highlighted text.

Article structure

A standardized structure of articles improves accessibility, because it enables users to expect contents to be in a specific part of the page. For example, a blind user is searching for disambiguation links. If he doesn't find any at the top of the page, he will know that there aren't any and he doesn't have to read the whole page to find that out.

Section headings

Headings should be descriptive and in a consistent order.

Headings should be nested sequentially, starting with level 2 (==), then level 3 (===) and so on (level 1 is not used, as this is the auto-generated page title), neither using random heading levels (e.g. selected for emphasis, which is not the purpose of headings), nor skipping parts of the sequence.

Do not make pseudo-headings using bold or semicolon markup. Screen readers and other machines can only use correctly formatted headings. If you want to reduce the size of the table of contents (TOC), use {{TOC limit}} instead.

Heading use (and misuse) examples
Correct Random/chaotic Skipping levels Pseudo-headings

[Article lead here]Template:Break ==Section== [level 2]Template:Break ===Sub-section=== [3]Template:Break ==Section== [2]Template:Break ===Sub-section=== [3]Template:Break ====Sub-sub-section==== [4]Template:Break ==Section== [2]

[Article lead here]Template:Break ====Section?==== [4]Template:Break ===Section?=== [3]Template:Break ==Section?== [2]Template:Break ==Section?== [2]Template:Break ====Section?==== [4]Template:Break ===Section?=== [2]

[Article lead here]Template:Break [Level-2 section missing here]Template:Break ===Section?=== [3]Template:Break ==Section== [2]Template:Break [Level-3 sub-section missing here]Template:Break ====Sub-section?==== [4]Template:Break ==Section== [2]

[Article lead here]Template:Break ==Section== [level 2]Template:Break ===Sub-section=== [3]Template:Break '''Sub-section''' [Pseudo-headings]Template:Break ==Section== [2]Template:Break ===Sub-section=== [3]Template:Break ;Sub-sub-section [Pseudo-headings]Template:Break ==Section== [2]Template:Break <small>==Sub-sub-section==</small> [3]

Floating elements

In the wikitext, floating elements should be placed inside the section they belong to. For example, an image may be displayed under a header due to other floating elements pushing it down, while in the wikisyntax it is placed at the top of the page. Images should be inserted inside the section they belong to.

Images

  1. Images should include an alt attribute, even an empty one, that acts as a substitute for the image for blind readers, search-spiders, and other non-visual users. If additional alt text is added it should be succinct, or should refer the reader to the caption or adjacent text.
  2. In most cases, images should contain a caption, either using the built in image syntax or a secondary line of text. The caption should concisely describe the meaning of the image, the essential information it is trying to convey.
  3. Where possible, any charts or diagrams should have a text equivalent, or should be well-described so that users who are unable to see the image can gain some understanding of the concept.
  4. Detailed image descriptions, where not appropriate for an article, should be placed on the image description page, with a note saying that activating the image link will lead to a more detailed description.
  5. Images should be inside the section they belong to (after the heading and after any links to other articles), and not in the heading nor at the end of the previous section, otherwise screen readers would read the image (and its textual alternative) in a different section; as they would appear to viewers of the mobile site.
  6. Avoid referring to images as being on the left or right. Image placement is different for viewers of the mobile version of Powerpedia, and is meaningless to people having pages read to them by assistive software. Instead, use captions to identify images.

Lists

Do not separate list items by leaving empty lines or tabular column breaks between them. This includes items in a description list (a list made with a leading colon) or an unordered list. Lists are meant to group elements that belong together, but MediaWiki will interpret the blank line as the end of one list and start a new one. These excessive double line breaks also disrupt Screen readers, which will announce multiple lists when only one was intended, and therefore may mislead or confuse users of these programs. Improper formatting can also more than triple the length of time it takes them to read the list. Likewise, do not switch between list marker types (colons, asterisks or hash signs) in one list, unless embedding lists starting at the highest level.

Bulleted vertical lists

For bulleted vertical lists, do not separate items by leaving blank lines between them. If list items are separated by more than one line break, the HTML list will be ended before the line break, and another HTML list will be opened after the line break. This effectively breaks what is seen as one list into several smaller lists for those using screen readers. For example, for the coding:

* White rose
* Yellow rose

* Pink rose

* Red rose

the software partially suppresses line spaces and therefore it looks like this:

  • White rose
  • Yellow rose
  • Pink rose
  • Red rose

but will be read by a screen reader as: "List of 2 items: (bullet) White rose, (bullet) Yellow rose, list end. List of 1 items: (bullet) Pink rose, list end. List of 1 items: (bullet) Red rose, list end."

Do not separate list items with line breaks (<br>). Use {{plainlist}} / {{unbulleted list}} if the list is to remain vertical; or consider {{flatlist}} / {{hlist}} if the list could be better rendered horizontally (in-line) as described in the following two sections.

Unbulleted vertical lists

For unbulleted lists running down the page, the templates {{plainlist}} and {{unbulleted list}} are available, to improve accessibility and semantic meaningfulness by marking up what is clearly a list rather than including <br /> line breaks, which should not be used—see above. They differ only in the wiki-markup used to create the list. Note that because these are templates, the text of each list item cannot contain the vertical bar symbol ( | ) unless it is replaced by {{!}} or is contained within <nowiki>...</nowiki> tags.

Example of plainlist
Wikitext Renders as
{{plainlist |
* White rose
* Yellow rose
* Pink rose
* Red rose
}}
  • White rose
  • Yellow rose
  • Pink rose
  • Red rose
Example of unbulleted list
Wikitext Renders as
{{unbulleted list
| White rose
| Yellow rose
| Pink rose
| Red rose
}}
  • White rose
  • Yellow rose
  • Pink rose
  • Red rose

Alternatively, in templates such as Navboxes and the like, or any suitable container, such lists may be styled with the class "plainlist", thus:

  • | listclass = plainlist or
  • | bodyclass = plainlist

In infoboxes:

  • | rowclass = plainlist or
  • | bodyclass = plainlist

may be used. See also Manual of Style: Lists § Unbulleted lists. See WP:NAV for more details on Navigation templates.

Horizontal lists

Shortcut:
MOS:HLIST

For lists running across the page, and in single rows in infoboxes and other tables, the templates {{flatlist}} and {{hlist}} ("h[orizontal]list") are available to improve accessibility and semantic meaningfulness. This feature makes use of the correct HTML markup for each list item, rather than including bullet characters which, for example, are read out (e.g., "dot cat dot dog dot horse dot...") by the assistive software used by people who are blind. The templates differ only in the wiki-markup used to create the list. Note that because these are templates, the text of each list item cannot contain the vertical bar symbol ( | ) unless it is replaced by {{!}} or is contained within <nowiki>...</nowiki> tags.

Example of flatlist
Wikitext Renders as
{{flatlist |
* White rose
* Yellow rose
* Pink rose
* Red rose
}}
  • White rose
  • Yellow rose
  • Pink rose
  • Red rose
Example of hlist
Wikitext Renders as
{{hlist
| White rose
| Yellow rose
| Pink rose
| Red rose
}}
  • White rose
  • Yellow rose
  • Pink rose
  • Red rose

Alternatively, in templates such as Navboxes and the like, or any suitable container, such lists may be styled with the class hlist, thus:

  • | listclass = hlist or
  • | bodyclass = hlist

In infoboxes:

  • | rowclass = hlist or
  • | bodyclass = hlist

may be used.

Links

  1. Create good link descriptions, especially for external links (avoid "click here!", "this").[1][2]
  2. Do not use UnicodeWikipedia Logo.png characters as icons; use an icon with alt text instead. For example, a character like "→" can not be reproduced into useful text by a screen reader, and will usually be read as a question mark.

Related

External links

Template:Accessibility Template:Powerpedia