Website Accessibility Tips #4: form field focus outline

Website Accessibility Tips #4: form field focus outline

Two forms displayed side by side; left side form shows no change to the focus outline of the form field, the right side form shows a green outline for the form field in focus.

My Website Accessibility Tip #2 (link below) was about adding a strong outline to all your form fields so all users can clearly see them - tip #4 is similar, but different.

When a website visitor navigates through your website using a keyboard, it's standard practice (or it should be!) to have interactive elements, like links (image and text) and form fields to have a distinctive outline when that element receives 'focus'.

What does this mean? An element is said to have focus when it is the active element that is triggered by pressing the enter/return key or by clicking a mouse button or by giving a voice command etc.

Providing a distinctive outline to the element in focus helps all users to identify the active element and to understand what is likely to happen if they activate the element e.g. if they click on a navigation menu item, or if they start typing when a form field has focus.

Luckily for all of us, most web browsers have focus outlines already built in! Not so lucky for many of us, many websites have this in-built style overwritten, either through the design process - if the outline doesn't fit the aesthetic the designer is aiming for - or due to a particular web builder that may have been used to generate the site.

In the case of it being a design decision to hide the focus outline, this can be quickly remedied by the designer adding an outline style to the site that matches the colour palette/branding etc or by removing the restriction all together.

How can you tell if the focus outline works on your site? Visit any page on your website and start tabbing through the page using the tab key on your keyboard. If an interactive element like a link displays an outline at some point in your journey then outlines are working! Better yet, test your web forms to see if the field that receives focus also displays a distinctive outline. Forms are often overlooked or styled poorly, rendering them not friendly to users.

If your site doesn't show focus outlines, ask your web designer to fix this very useful tool for navigating your website.

??Janet Efere Sales Expert

Global Sales Training Manager

3 年

Another great tip Chandesh Parekh - thanks for making it seem so logical

Neal Cole

CEO - Helping You Get More from Google Analytics and Google Tag Manager (Server-Side) - CXL.com Course Instructor - BNI Roman

3 年

Excellent advice Chandesh Parekh - this kind of detail can make a big difference to people with visual impairments.

Josh Roberts

CRO Consultant | Optimising Websites to increase Conversion and Revenue | Conversion Optimisation, UX, Analytics, User Research, A/B Testing, Experimentation.

3 年

Love this nugget of knowledge Chandesh: "Luckily for all of us, most web browsers have focus outlines already built in! Not so lucky for many of us, many websites have this in-built style overwritten, either through the design process - if the outline doesn't fit the aesthetic the designer is aiming for - or due to a particular web builder that may have been used to generate the site."

Chandesh Parekh

Digital Solutions for Business: Reputation Marketing, Web Development & Web Accessibility | Specialising in reputation marketing for community pharmacies

3 年

Follow #AccessibilityByNERO for more tips on website accessibility.

回复
Chandesh Parekh

Digital Solutions for Business: Reputation Marketing, Web Development & Web Accessibility | Specialising in reputation marketing for community pharmacies

3 年
回复

要查看或添加评论,请登录

Chandesh Parekh的更多文章

社区洞察

其他会员也浏览了