Accessibility
On each web page, custom controls must have an appropriate role, with any required ARIA attributes giving them properties and status. For instance: to convey status correctly, a custom checkbox must have a role="checkbox" and aria-checked="true|false".
You can use a screen reader or the ChromeDevTools accessibility panel if you need to verify that all custom interactive controls have the appropriate ARIA roles.
In CSS, the <div> and <button> elements provide different experiences when inspected by a screen reader: the <div> is announced through its textual content, while the <button> is announced as a "button", i.e. something the user can interact with.
You can solve the situation by not using custom interactive controls together: do not use a <div> with the button function, but try to use a real <button> directly.
If you need to keep the <div> though, assign a role=”button” to it and aria-pressed=”false”.
In this way, screen readers are able to announce the role and interactive state of the <div>.
Learn more about Accessibility
On page SEO performance and page checkup.
Over 300 parameters for the deeper page analysis.
Share this Guide
Did you like it? Share it!
Web tools for modern developers. Try these one!
Over 50 generators, builders and validators to improve your SEO and web performances
Builders and generators
Generate feature-rich htaccess files: www rewrite, hotlink prevention, custom error pages, cache rules and redirects.
Images
Quicly capture any web page screenshot and thumbnails. Get image rendering on desktop and mobile and thumbnails filmstrip with loading timing.
Analytics Google Tracking script
Generate URLs for iOS Campaign Measurement. Use this free tool to generate URLs for measuring the source of iOS application installs.
Converters
Pixel - Rem - Point units converter. Convert Pixel to REM or Point unit in seconds and vice versa with this free converrter.
Social Tester and validators
Get Facebook data and engagement count by URL. Retrieve Open Graph data, "share" count, comment count and engagement from url.
Tester and validators
Check color contrast ratio WCAG 2 AA of your pages. Check if your color scheme meet the WCAG 2 AA contrast ratio thresholds.
Test your Web Vitals metrics, score and diagnostic. Measures Google Core Web Vitals LCP, FID, CLS, TTFB, FCP, TTI, TBT and more.
Is your web page mobile-friendly? Ready for mobile-first indexing? Test whether a page on your site is mobile-friendly or not based on Googlebot User-agent.