Election Website Accessibility
Best Practices

Ensuring citizens of all abilities have full access to election information is key to enfranchisement and inclusion, which is why Scytl strives to provide platforms that are fully accessible. However, we do not think this should be limited to our clients – we believe all constituents should have access to digital election information regardless of where they live. This elections website accessibility best practices guide will help explain not only what accessibility is, but how to ensure your website is accessible to all through HTML coding, helping your office deliver an empowering online experience to citizens of all abilities.

Accessibility as defined in technology is the design of products, devices, services, or environments for people with disabilities. The concept of accessible design and the practice of accessible development enables both direct access (i.e. unassisted) and indirect access meaning compatibility with a person’s assistive technology, such as computer screen readers.

Accessibility can be viewed as the ability to access and benefit from some system or entity. The concept focuses on enabling access for people with disabilities, or special needs, or enabling access through the use of assistive technology; however, research and development in accessibility brings benefits to everyone.

Election Website Accessibility
Best Practices

Ensuring citizens of all abilities have full access to election information is key to enfranchisement and inclusion, which is why Scytl strives to provide platforms that are fully accessible. However, we do not think this should be limited to our clients – we believe all constituents should have access to digital election information regardless of where they live. This elections website accessibility best practices guide will help explain not only what accessibility is, but how to ensure your website is accessible to all through HTML coding, helping your office deliver an empowering online experience to citizens of all abilities.

Accessibility as defined in technology is the design of products, devices, services, or environments for people with disabilities. The concept of accessible design and the practice of accessible development enables both direct access (i.e. unassisted) and indirect access meaning compatibility with a person’s assistive technology, such as computer screen readers.

Accessibility can be viewed as the ability to access and benefit from some system or entity. The concept focuses on enabling access for people with disabilities, or special needs, or enabling access through the use of assistive technology; however, research and development in accessibility brings benefits to everyone.

Reinforce Your Knowledge

Plan
Plan your content to be consumed by people with different abilities.
Clean Code
Use clean code to ensure accessibility readers can read it.
Clean Content
Structure your content to be descriptive and involve more than one sense.

How to Make Your Website Accessible

To ensure your website is accessible to all, the site should be up to date with the best practices and standards for coding. There are often common discrepancies in coding. The following list will help establish good, clean code to use. 

Make sure:

  • All elements have start (open) and end (close) tags. For more information, please read the technique H74: Ensuring that opening and closing tags are used according to specification.
  • All HTML elements nested correctly.
  • Elements do not contain duplicate attributes.
  • Element IDs are unique.
  • You do not use duplicate tags like:
    Copy to Clipboard

How to fix HTML with examples:
When editing the contents of your website, we strongly recommend that you validate your HTML code before saving the page using the W3C Markup Validation Service. To do so just wrap your page content code into a basic HTML5 structure (provided below), paste the resulting code into the Validate by Direct Input text area, press the Check button and fix the prompted errors if any.
Basic HTML5 structure:

Copy to Clipboard
 
Semantically correct HTML helps screen readers, search engines, and other user devices determine the context of the web content. 

What to do:

  • Use < h1> to < h6> headings to structure and organize content. Be aware that the page title is always < h1> and that it is not allowed to skip heading levels.
    Semantic Structure: Regions, Headings, and Lists
  • Use HTML5 semantic markup to structure content.
    Semantic HTML5 Elements Explained
  • Make sure data cells are associated with header cells inside a table.
    HTML table basics
    (Pay attention to the When should you NOT use HTML tables? section because this is a very common mistake)
  • Use HTML markup for ordered and unordered lists.
    Web Accessibility – Lists
  • When adding several [accordion] shortcodes, for example to create a FAQs page, please wrap those accordions into an unstyled list. To do so use the class ‘unstyled-list’ and add an aria-label attribute with a name for the list. See an example below:
Copy to Clipboard
 
Write clear, descriptive headings for content and/or labels for form fields. Clear headings are vital for anyone to navigate the webpage.

What to do:

  • Use concise, clear language for headings within a page (e.g. < h1>, < h2>) and form labels.
  • A single word can be sufficient if it relays the necessary information.

When using headings and labels, write clearly and descriptively so a user knows what content follows or what form fields are asking for. For example, an effective label for a form that is asking for a first name is “First name”.

As another example, the < h1> heading for an article might be “How To Make a Website Accessible” and an < h2> heading might be “Provide Content Alternatives”.

The key here is that the words are clear and descriptive so a user knows what content to expect or what input a form field is asking for.
Headings and Labels: Understanding SC 2.4.6
 

Alt text is the practice of adding a secondary means of explaining things like images so that everyone can understand the webpage. Another benefit of alt text is that search engines can even search for it. All non-text content presented to the user has a text alternative that serves the equivalent purpose, except if non-text content is pure decoration, is used only for visual formatting, or is not presented to users. If that is the case, it is implemented in a way that can be ignored by assistive technology.

How to Create Alt Text:

  • Add Alt attribute to non decorative images (e.g. from < img class=“alignone size-full wp-image-17”> to < img alt=“Handicap Symbol” class=“alignone size-full wp-image-17”>).
  • Add an empty alt attribute to decorative images (e.g. from < img class=“separator”> to < img alt=”” class=“separator”>).

 

Do not use images of text on your website unless it is absolutely necessary. This is so the text remains accessible. If there was an image of text, search engines and accesibility technology would not be able to recognize it. If it is necessary to add an image with text you should add Alt text and description on the image.

What to do:

  • Make sure you do not have any images of only text.
  • Avoid images that include text that conveys information if at all possible.
  • Graphs, screenshots, and diagrams which convey important information of more than just text are probably okay as images.
  • If you do have an image that includes text, add Alt text and potentially a caption or description.

Images of Text: Understanding SC 1.4.5
 

Closed captions are far more than just subtitles. Subtitles merely convey dialogue. Closed captions also include any important sounds in the video (e.g. door slamming, background music, etc.). Subtitles assume the audience can hear the audio but needs the dialogue available as well (for instance, the dialogue may be in another language or difficult to understand). Closed captioning assumes the audience cannot hear the audio and needs a text description of what they would be hearing.

How to add prerecorded closed captions:
When adding a new video, create a tts file with closed captions except when the media is actually a media alternative for text and is clearly labeled as such. For further information please visit: WebVTT: The Web Video Text Tracks

 

Writing clear instructions that incorporate multiple senses is highly important so that they can be perceived in multiple ways. No instructions should rely solely on the ability to perceive shape, size, visual location, orientation, or sound. The best practice is to label things with text, and include a reference to that text. 

What to do:

  • Be deliberate and purposeful when writing instructions on your website.
  • Attempt to include a text reference (e.g. “subscribe button”) with every set of instructions.
  • Remember that some people will not:
    • Be able to tell what shape an object is.
    • Be able to perceive an object is positioned.
    • Be able to hear an audible indicator.

Here are some good and bad examples of sensory instructions.

Bad examples:

  • Click on the button to your right to go to the next page.
  • You can search for additional information using the search bar at the bottom.
  • Click on the rectangle button to subscribe.

Good examples:

  • Click on the green button labeled “next page” slightly below and to the right of this text.
  • Use the rectangle search bar on the bottom left of this page inside the footer area to search for additional information.
  • Click on the blue rectangle button marked “subscribe” directly below this line to subscribe.

Sensory Characteristics: Understanding SC 1.3.3
 

The page titles need to be descriptive enough for a user to identify what the topic or purpose of a page is. Also, no two pages of your website should have the exact same title – a title may be close to identical to another page but there should always be some distinguishing component.

Make sure the permalink is equal to the page title when possible:

Page Titled: Understanding SC 2.4.2
 

Descriptive links are important for accessibility so that anyone can read it and understand where the link is going to. For example if the link was “https://books.google.com/book?id=8k-cmbtvHgI” we would not be able to understand where that link was going. But if we use a descriptive link and say “ebook: Tricks of the Microsoft Office 2007 Gurus,” then anyone is able to read it. Write your link text so that users have an idea what the linked page is.
 
What to do:

  • Use obvious link anchor text (anchor text are the words you attach a link to).
  • Avoid long URL and “click here” and “learn more” general type of links.
  • Try to use mostly keywords (vs. fluffy words like “click here”) when creating links.
  • Be especially cognizant of creating useful Alt text when linking images.

Link Purpose (In Context): Understanding SC 2.4.4
 

If the language within a page is different from the default language of the website (even if only in a small section) the change must be indicated in the HTML code.
 
What to do:

  • Use HTML markup to indicate a language change when you switch to words or phrases that are meant to be read in another language.

How to set language of a paragraph
How to set language of a link
 

You do not have to eliminate color for information or as an indicator, but you do have to account for the fact that some people may not be able to perceive the color. Add an alternate means (such as text) where people can gather the same information or indication. 

What to do:

  • Add text as an alternative way to indicate the same information.
  • Use highlighting on form fields to indicate that a required field had been left blank.

Use of Color: Understanding SC 1.4.1
 

Color contrast is important in order for texts to be readable to all. You would not put a dark background behind dark font since it would be very difficult to read. Text and images of text should have a color contrast ratio of 4.5:1 against the background. Exceptions:

  • Large text (18 point or 14 point bold) need only be 3:1.
  • Logos or brand names don’t have a requirement.

What to do:

How to Make Your

Website Accessible

To ensure your website is accessible to all, the site should be up to date with the best practices and standards for coding. There are often common discrepancies in coding. The following list will help establish good, clean code to use. 

Make sure:

  • All elements have start (open) and end (close) tags. For more information, please read the technique H74: Ensuring that opening and closing tags are used according to specification.
  • All HTML elements nested correctly.
  • Elements do not contain duplicate attributes.
  • Element IDs are unique.
  • You do not use duplicate tags like:
    Copy to Clipboard

How to fix HTML with examples:
When editing the contents of your website, we strongly recommend that you validate your HTML code before saving the page using the W3C Markup Validation Service. To do so just wrap your page content code into a basic HTML5 structure (provided below), paste the resulting code into the Validate by Direct Input text area, press the Check button and fix the prompted errors if any.
Basic HTML5 structure:

Copy to Clipboard
 
Semantically correct HTML helps screen readers, search engines, and other user devices determine the context of the web content. 

What to do:

  • Use < h1> to < h6> headings to structure and organize content. Be aware that the page title is always < h1> and that it is not allowed to skip heading levels.
    Semantic Structure: Regions, Headings, and Lists
  • Use HTML5 semantic markup to structure content.
    Semantic HTML5 Elements Explained
  • Make sure data cells are associated with header cells inside a table.
    HTML table basics
    (Pay attention to the When should you NOT use HTML tables? section because this is a very common mistake).
  • Use HTML markup for ordered and unordered lists.
    Web Accessibility – Lists
  • When adding several [accordion] shortcodes, for example to create a FAQs page, please wrap those accordions into a, unstyled list. To do so use the class ‘unstyled-list’ and add an aria-label attribute with a name for the list. See an example below:
Copy to Clipboard

 

Write clear, descriptive headings for content and/or labels for form fields. Clear headings are vital for anyone to navigate the webpage.

What to do:

  • Use concise, clear language for headings within a page (e.g. < h1>, < h2>) and form labels.
  • A single word can be sufficient if it relays the necessary information.

When using headings and labels, write clearly and descriptively so a user knows what content follows or what form fields are asking for.
For example, an effective label for a form that is asking for a first name is “First name”.

As another example, the < h1> heading for an article might be “How To Make a Website Accessible” and an < h2> heading might be “Provide Content Alternatives”.

The key here is that the words are clear and descriptive so a user knows what content to expect or what input a form field is asking for.
Headings and Labels: Understanding SC 2.4.6
 

Alt text is the practice of adding a secondary means of explaining things like images so that everyone can understand the webpage. Another benefit of alt text is that search engines can even search for it. All non-text content presented to the user has a text alternative that serves the equivalent purpose, except if non-text content is pure decoration, is used only for visual formatting, or is not presented to users. If that is the case, it is implemented in a way that can be ignored by assistive technology.

How to Create Alt Text:

  • Add Alt attribute to non decorative images (e.g. from < img class=“alignone size-full wp-image-17”> to < img alt=“Handicap Symbol” class=“alignone size-full wp-image-17”>).
  • Add an empty alt attribute to decorative images (e.g. from < img class=“separator”> to < img alt=”” class=“separator”>).

 

Do not use images of text on your website unless it is absolutely necessary. This is so the text remains accessible. If there was an image of text, search engines and accessibility technology would not be able to recognize it. If it is necessary to add an image with text you should add Alt text and description on the image.

What to do:

  • Make sure you do not have any images of only text.
  • Avoid images that include text that conveys information if at all possible.
  • Graphs, screenshots, and diagrams which convey important information of more than just text are probably okay as images.
  • If you do have an image that includes text, add Alt text and potentially a caption or description.

Images of Text: Understanding SC 1.4.5
 

Closed captions are far more than just subtitles. Subtitles merely convey dialogue. Closed captions also include any important sounds in the video (e.g. door slamming, background music, etc.). Subtitles assume the audience can hear the audio but needs the dialogue available as well (for instance, the dialogue may be in another language or difficult to understand). Closed captioning assumes the audience cannot hear the audio and needs a text description of what they would be hearing.

How to add prerecorded closed captions:
When adding a new video, create a tts file with closed captions except when the media is actually a media alternative for text and is clearly labeled as such. For further information please visit: WebVTT: The Web Video Text Tracks

 

Writing clear instructions that incorporate multiple senses is highly important so that they can be perceived in multiple ways. No instructions should rely solely on the ability to perceive shape, size, visual location, orientation, or sound. The best practice is to label things with text, and include a reference to that text. 

What to do:

  • Be deliberate and purposeful when writing instructions on your website.
  • Attempt to include a text reference (e.g. “subscribe button”) with every set of instructions.
  • Remember that some people will not:
    • Be able to tell what shape an object is.
    • Be able to perceive an object is positioned.
    • Be able to hear an audible indicator.

Here are some good and bad examples of sensory instructions.

Bad examples:

  • Click on the button to your right to go to the next page.
  • You can search for additional information using the search bar at the bottom.
  • Click on the rectangle button to subscribe.

Good examples:

  • Click on the green button labeled “next page” slightly below and to the right of this text.
  • Use the rectangle search bar on the bottom left of this page inside the footer area to search for additional information.
  • Click on the blue rectangle button marked “subscribe” directly below this line to subscribe.

Sensory Characteristics: Understanding SC 1.3.3
 

The page titles need to be descriptive enough for a user to identify what the topic or purpose of a page is. Also, no two pages of your website should have the exact same title – a title may be close to identical to another page, but there should always be some distinguishing component.

Make sure the permalink is equal to the page title when possible:

Page Titled: Understanding SC 2.4.2
 

Descriptive links are important for accessibility so that anyone can read it and understand where the link is going to. For example if the link was “https://books.google.com/book?id=8k-cmbtvHgI” we would not be able to understand where that link was going. But if we use a descriptive link and say “ebook: Tricks of the Microsoft Office 2007 Gurus,” then anyone is able to read it. Write your link text so that users have an idea what the linked page is.
 
What to do:

  • Use obvious link anchor text (anchor text are the words you attach a link to).
  • Avoid long URL and “click here” and “learn more” general type of links.
  • Try to use mostly keywords (vs. fluffy words like “click here”) when creating links.
  • Be especially cognizant of creating useful Alt text when linking images.

Link Purpose (In Context): Understanding SC 2.4.4
 

If the language within a page is different from the default language of the website (even if only in a small section) the change must be indicated in the HTML code.
 
What to do:

  • Use HTML markup to indicate a language change when you switch to words or phrases that are meant to be read in another language.

How to set language of a paragraph
How to set language of a link
 

You do not have to eliminate color for information or as an indicator, but you do have to account for the fact that some people may not be able to perceive the color. Add an alternate means (such as text) where people can gather the same information or indication. 

What to do:

  • Add text as an alternative way to indicate the same information.
  • Use highlighting on form fields to indicate that a required field had been left blank.

Use of Color: Understanding SC 1.4.1
 

Color contrast is important in order for texts to be readable to all. You would not put a dark background behind dark font since it would be very difficult to read. Text and images of text should have a color contrast ratio of 4.5:1 against the background. Exceptions:

  • Large text (18 point or 14 point bold) need only be 3:1.
  • Logos or brand names do not have a requirement.

What to do:

 

Scytl Election Night Reporting
Scytl Voter Education
Accessible election websites to increase public trust, transparency, and access to local election information

Combine Scytl Voter Education and Election Night Reporting for accurate and easy to update communication with constituents before, during, and after elections. Learn more about Voter Education.