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
Tester and validators
Validate your AMP pages with this tool. Test your Accelerated Mobile Pages, get detailed report and optimize performance.
Images
Quicly capture any web page screenshot and thumbnails. Get image rendering on desktop and mobile and thumbnails filmstrip with loading timing.
Google Server and proxy
Find out the exact date and time your web page was cached by Google’s crawler through Google Cache Status checker
Server and proxy
IP Address and Domain Name Geolocation Lookup Tool. IPv4, IPv6 and domain name Geolocation. Accurate IP and Domain name lookup database.
Check SEO performance and page checkup. Over 250 parameters for the deeper page analysis. Find out more about the performance of your website.
Test your Web Vitals metrics, score and diagnostic. Measures Google Core Web Vitals LCP, FID, CLS, TTFB, FCP, TTI, TBT and more.
Builders and generators
Generate structured data in json-ld and improve your SEO. Enhance your appearance in Google Search with rich snippet result.
Generate your Web App Manifest json and improve site data. Provide information about your website, allow users to quick access for a better experience.