Validate Accessibility for Local File
Contents
[
Hide
Show
]Validate Accessibility for Local File
To check accessibility for a local HTML file, you must first upload the file to Aspose Cloud Storage, then use its storage path in the API request.
Step 1: Upload the File
See Uploading Files for instructions on uploading your file to storage.
Step 2: Validate Accessibility
1POST https://api.aspose.cloud/v4.0/html/accessibility
2Content-Type: application/json
3Authorization: Bearer <your_access_token>
4
5{
6 "InputPath": "<storage-folder>/<your-file.html>",
7 "StorageName": "<your-storage>",
8 "Options": {
9 "AllLevels": true,
10 "WcagVersion": "2.1"
11 }
12}Response
The response will indicate whether the document passes accessibility checks and provide details for each rule.
See the API Reference for more details.