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
Capture web page requests and timeline waterfall. Quickly capture and analyze web page network requests during page load.
Social Tester and validators
Get Facebook data and engagement count by URL. Retrieve Open Graph data, "share" count, comment count and engagement from url.
Builders and generators
Generate structured data in json-ld and improve your SEO. Enhance your appearance in Google Search with rich snippet result.
Analytics Google Tracking script
Send Web Vitals metrics to Analytics for better tracking. Measures and send Google Core Web Vitals to your Analytics account.
Server and proxy
IP Address and Domain Name Geolocation Lookup Tool. IPv4, IPv6 and domain name Geolocation. Accurate IP and Domain name lookup database.
Find out which theme, version, author and license a WordPress site is using trought Wordpress Theme detector tool
Compressor
JS minifier tool. Optimize and compress your Javascript code, make your website faster and reduce network payload sizes.
Test your Web Vitals metrics, score and diagnostic. Measures Google Core Web Vitals LCP, FID, CLS, TTFB, FCP, TTI, TBT and more.