In this tutorial:
- Prepare the ground for fairness on the web
- Utilize clear, detailed, sequential headings
- Implement suggested color contrast ratios
- Utilize clear, noticeable form field labels and assistance text
- Utilize meaningful button and hyperlink names
- Incorporate deliberate motion and animation
- Utilize unique element IDs
- Utilize responsive text dimensions
- Provide alt text for each significant image
- Establish accessibility as a collective priority
The internet should be reachable for everyone. This is often not true for individuals who are Vision impaired, have low vision, visually impaired, Hearing impaired, hard of hearing, or who have cognitive, educational, or mobility disabilities, among others.
About 15% of the global population has a disability — that’s more than 1 billion individuals who face a negative user experience when designs do not address accessibility.
Inaccessibility on the web is not a result of disabilities or a shortage of tools, but rather of designs that obstruct assistive technology (AT). AT encompasses settings and devices that aid people in interacting with the online world.
Illustrations of AT include:
- Screen readers: transforms text, buttons, images, and other page elements into speech or braille for individuals who are Vision impaired, Deafblind, have low vision, or have cognitive or educational disabilities
- Magnification: enlarges the size of items on the screen for individuals with low vision
- Keyboards: utilize keyboard commands (in place of a mouse) for individuals with restricted mobility
- Voice dictation: utilize speech (instead of a mouse and keyboard) to browse the web for individuals with restricted mobility
Establish equity on the web through excellent design + assistive technology
Webflow has pledged to construct a better, more accessible web, and this endeavor relies on us collaborating as a community to be conscientious of best practices, especially those of the Web Content Accessibility Guidelines (WCAG).
WebAIM analyzed a million homepages and identified that 98% contained avoidable accessibility obstacles. We recently implemented modifications to make top components more accessible out of the box. We wish to encourage you to participate in eliminating barriers — starting immediately. Right now!
Let’s examine some alterations you can implement that will significantly contribute to making your websites and the web more accessible for everyone.
Utilize clear, detailed, sequential headings
Unorganized web content is overwhelming and unusable for all users, particularly for individuals with cognitive disabilities and those who rely on screen readers. Headings structure content and direct users through your site.
Your headings should facilitate easy scanning of a page and provide a clear purpose and summary of content without the need to read body text.
Abstain from:
- Applying heading levels solely for visual distinctions
- Utilizing heading text purely for compliance — ensure it is functional
Instead:
- Use a single H1 per page that defines its purpose (or utilize multiple H1s only when a page genuinely serves more than one purpose)
- Arrange headings hierarchically (e.g., H3 under H2)
To delve deeper into the significance of organizing your content with headings and how to style headings in Webflow, explore this section on headings in Webflow University’s instructional video on Advanced web typography.
WCAG Reference:Success Criterion 2.4.6: Headings and Labels
Apply suggested color contrast ratios
Adequate color contrast between text and background enhances the experience and readability on your site for all users, particularly for individuals with visual impairments. WCAG provides recommended ratios for optimal contrast based on text size. Contrast involves the discrepancy in brightness (or luminance) between two colors and spans from 1:1 (e.g., white text on a white background) to 21:1 (e.g., black text on a white background).
Guidelines for Color Contrast AA (minimum)
- Text and images should adhere to a ratio of 4.5:1
- Larger text (18 point or 14 point bold) necessitates a ratio of 3:1
Guidelines for Color Contrast AAA (enhanced)
- Text and images should conform to a ratio of 7:1
- Larger text (18 point or 14 point bold) requires a ratio of 4.5:1
Webflow’s integrated color contrast analyzer
You can verify the contrast ratio of text on your website directly from the color picker in Webflow, which not only displays the contrast ratio of text but also indicates the corresponding WCAG level rating for that contrast ratio.
Patterns of Contrast Ratio Curves
You can switch the preview icon (the eye) beneath the palette on the right to observe the curve patterns for AA, AAA, and a Fail rating on WCAG. The curve patterns for ratios are derived by testing every blend of saturation and brightness for hue and opacity — observe the curves moving as you adjust hue or opacity. Light text on a dark background reveals an AAA rating in the top left of the palette and a Fail in the bottom right, while the reverse is true for dark text against a light background.
Fascinating: The color contrast analyzer employs an algorithm to calculate the difference in luminosity between two colors (contrast) and evaluates it against WCAG guidelines for text size. The algorithm adjusts for font weight since bold text may be smaller and still legible. Small text necessitates a heightened luminosity difference for legibility.
The WCAG level rating is influenced by the background color and the font’s size, weight, and color, elucidated with auxiliary text that is unveiled upon clicking the “question mark” icon. (This contrast ratio segment is only visible when modifying the typography color of text elements.)
Reminder: While WCAG contrast ratio guidelines do not extend to images (including logos), it is recommended to adhere to a 4.5:1 ratio for images with prominent text. However, bear in mind that images containing text can be challenging and often impossible for visitors with visual impairments to comprehend — employ styled text whenever feasible.
Discover more about the importance of color contrast in Webflow University’s video lesson on Advanced web typography.
WCAG References: Success Criterion 1.4.3: Contrast (Minimum), Success Criterion 1.4.6: Contrast (Enhanced), Success Criterion 1.4.5: Images of Text
Webflow’s integrated Vision preview.
A significant proportion of the populace is impacted by vision deficiencies. Nevertheless, comprehending the perception of your design by someone with vision impairments can be challenging if you do not have such impairments yourself.
With Webflow’s Vision preview, you have the ability to replicate the viewpoint of visually challenged individuals when accessing your website. Utilize this feature at the initial stages of your design process to ensure that crucial information in your design is not solely reliant on colors.
Keep in mind: Utilizing Vision preview offers an approximate presentation of vision impairments. Variables such as your individual vision, lighting conditions, screen calibration, and operating system preferences can all influence the accuracy of these previews.
To access the various Vision preview alternatives, simply click on Canvas settings located at the top section of the Designer.
You have the option to select the type of vision impairment you wish to preview at the bottom of the Canvas settings popup menu.
The available vision impairments to choose from are:
- Red-green color deficiency (Previews for Green weak, Green blind, Red weak, and Red blind)
- Blue-yellow color deficiency (Previews for Blue weak and Blue blind)
- Complete color deficiency (Previews for Color weak and Monochrome)
- Focusing impairments (Preview for Blurred vision)
The chosen vision impairment will be denoted by an icon on the right side of the Canvas settings interface.
If you wish to stop viewing your design from a vision-impaired perspective, simply click on Canvas settings again and switch the Vision preview back to None.
Note: An issue in Safari prevents the use of Vision preview in Apple’s browser. The problem is specifically related to Safari’s inability to apply CSS filters containing url() values to iframes. Webflow has notified Apple of this bug, however, no tracking number has been provided. Alternatively, you can make use of Vision preview with Firefox and Chrome browsers.
Employ clear, conspicuous form field labels and assistance text
Form field labels serve to elucidate the function or purpose of a form field and are essential for facilitating accessible navigation of your form. Form components with placeholder text within the field that vanishes upon user interaction make it burdensome for individuals with cognitive impairments (and even those without) to remember the intended input. A straightforward remedy is to always maintain visible form labels and assistance text.
In order to build fully accessible forms in Webflow, a customized approach is presently required. You may employ the Label component in the Designer along with IDs and customized attributes to guarantee that labels are appropriately grouped and linked to their respective form fields.
To create accessible form labels:
- Select the form field (e.g., Input, Text area, Select, etc.)
- Access Element settings (by hitting D on your keyboard)
- Assign a unique ID to your form field
- Select your Label and access Element settings > Custom attributes
- Click on the “plus” icon
- Provide your Label with a custom attribute named “for” containing the same value as the ID assigned to the form field
- Save the changes
Essential: Ensure that your form field IDs are distinct and not shared among multiple elements.