WCAG Image Attribute

The wcag-img attribute is a lightweight, accessible feature that uses OpenAI to automatically generate alt text for images, ensuring compliance with WCAG standards without requiring any additional parameters.

Properties

Attributes

  • Name
    wcag-img
    Description

    Automatically generates alt text using OpenAI for enhanced accessibility compliance. This attribute takes no parameters.

Usage

To use the wcag-img attribute, simply add it to any <img> tag in your HTML.

    <img src="images/duck.jpg" wcag-img />
  

Styling

The wcag-img attribute operates independently of any specific styling requirements, making it easy to integrate with existing designs.

Example

<img src="images/duck.jpg" wcag-img />