Accessibility audit
About this tool
How to use it
- Choose this tool.
- Add your HTML file, or paste the HTML code into the box.
- If you only have a piece of a page, turn on the fragment option.
- If you like, choose the level and the smallest problem size to show.
- Press Generate, then read the list of problems.
What you get back
Try Accessibility audit in the Studio
Use it from your code
cURL
curl -X POST "https://app.h2i.davixlabs.io/v1/documents/accessibility" \
-H "X-Api-Key: $DAVIX_H2I_API_KEY" \
-F 'html=<img src="a.png"><button></button>' \
-F 'level=AA' \
-F 'min_impact=minor'Node.js
const { DavixH2I } = require('@davixlabs/h2i-sdk');
const h2i = new DavixH2I({ apiKey: process.env.DAVIX_H2I_API_KEY, baseUrl: process.env.DAVIX_H2I_URL });
const result = await h2i.documents.accessibility({
"html": "<img src=\"a.png\"><button></button>",
"level": "AA",
"min_impact": "minor"
});
console.log(result.data, result.requestId);PHP
<?php
require 'vendor/autoload.php';
$h2i = new \Davix\H2I\Client(['apiKey' => getenv('DAVIX_H2I_API_KEY'), 'baseUrl' => getenv('DAVIX_H2I_URL')]);
$result = $h2i->documents()->accessibility([
'html' => '<img src="a.png"><button></button>',
'level' => 'AA',
'min_impact' => 'minor',
]);
echo $result->requestId;