Fact-checked by Grok 2 weeks ago

alt attribute

The attribute is an primarily associated with the <img> element, specifying a short textual description of the 's purpose or content to serve as a substitute when the image cannot be rendered, such as in text-only browsers or due to loading failures, and to convey equivalent information to users for compliance. It also applies to elements like <area> in image maps and <input type="image"> for submit buttons, where it denotes the element's rather than visual appearance. Introduced in the earliest specifications to support rendering on text terminals incapable of displaying images, the attribute evolved from a basic fallback mechanism into a cornerstone of standards, as codified in guidelines like WCAG which mandate its use for non-decorative images to ensure perceivable content for all users. For decorative or non-informative images, an empty value (alt="") is recommended to signal omission from assistive technologies without conveying superfluous data. Misuse, such as omitting the attribute or stuffing it with irrelevant keywords for search optimization, undermines its core utility and violates accessibility principles grounded in providing genuine textual equivalents. Effective alt text prioritizes brevity and functional description—e.g., <img src="chart.[png](/page/PNG)" alt="Bar chart showing sales growth from 2020 to 2025">—over exhaustive visual details, aligning with empirical needs of assistive tools that process content linearly rather than spatially. This attribute remains integral to modern , where its absence triggers default behaviors like announcing file names, which disrupt for the visually impaired.

Definition and Purpose

Core Functionality

The alt attribute on the HTML <img> element specifies alternative text that serves as a textual substitute for the image's visual content. This attribute ensures that the page's meaning remains intact even if the image fails to load or render, by providing equivalent content that conveys the same information or purpose as the image itself. In practice, the text is displayed by browsers when the image source is unavailable, such as due to network errors or disabled images, acting as a direct fallback mechanism. For users relying on assistive technologies like screen readers, the alt value is rendered audibly or in , enabling comprehension of the image's role without visual access. This functionality extends to text-based browsers, where the alternative text replaces the entirely. The attribute is mandatory for <img> elements unless the image is purely decorative, in which case an (alt="") indicates it can be ignored by assistive technologies. The text must be concise yet descriptive, avoiding redundancy with surrounding content, and focused on the image's semantic contribution to the document. For informative images, such as diagrams or photographs integral to the content, the alt must replicate the image's communicative intent precisely.

Role in Web Standards

The alt attribute is mandated in the HTML specification for the <img> element to supply a text equivalent for non-textual content, enabling rendering in non-visual contexts such as screen readers or text-only browsers. The WHATWG HTML Living Standard requires that every <img> element include an alt attribute, with its value conveying the image's purpose or content; for decorative images, an empty string (alt="") is prescribed to indicate non-informative intent, preventing unnecessary verbosity in assistive technologies. This requirement supports core web principles of robustness and accessibility, ensuring content remains perceivable regardless of user agent capabilities or network conditions where images fail to load. In standards, the alt attribute underpins WCAG success criterion 1.1.1 (Non-text Content), which demands text alternatives for all non-text elements to achieve conformance at Levels , and . W3C techniques specify using alt for <img> to provide short, descriptive equivalents, with dedicated guidance like the decision tree outlining usage for informative, functional, or decorative images. Omission or inadequate alt values result in non-conformance, as validated by tools checking against these criteria, emphasizing the attribute's role in equitable . Web standards bodies like W3C and enforce alt through validation rules in parsers and authoring tools, promoting its use beyond mere fallback to foster practices. For instance, 1.0 Strict required non-empty alt for informative images, a carried into HTML5's flexible yet obligatory model. This mitigates accessibility barriers empirically observed in audits, where missing alt attributes correlate with higher exclusion rates for users with visual impairments.

Historical Development

Introduction in Early HTML

The alt attribute was introduced alongside the <img> element in the NCSA Mosaic web browser, the first graphical browser to support inline images, released in April 1993. Proposed by Mosaic developer Marc Andreessen, it provided a means to specify short textual descriptions as substitutes for images, addressing scenarios where images could not load due to network limitations or user agent constraints. This innovation marked a shift from text-only HTML documents, originally conceived by Tim Berners-Lee in 1991, toward multimedia content while attempting to preserve usability across diverse clients. The attribute gained formal recognition in the HTML 2.0 specification, documented in RFC 1866 and published by the on November 24, 1995. In this standard, alt is defined as an optional attribute for the <img> tag, containing character data that user agents "may process... as an alternative to processing the image resource indicated by the SRC attribute." The specification emphasized its role in non-graphical environments, noting that early web user agents without image rendering—prevalent in 1993–1995—could display the alt value in place of unavailable visuals, thereby maintaining document coherence. In the context of early HTML, which lacked mature standards for multimedia, the alt attribute primarily facilitated fallback rendering in text-based browsers like Lynx (developed from 1992) and line-mode browsers, where images were inaccessible. It also served practical needs during the dial-up era, when slow connections often failed to retrieve image files, prompting browsers to substitute descriptive text to convey essential content without halting . This dual utility—accessibility for text clients and reliability for incomplete loads—positioned alt as a foundational mechanism for inclusive before graphical dominance in the late 1990s.

Standardization and Evolution

The alt attribute was first formalized in the HTML 2.0 specification, published as RFC 1866 by the (IETF) on November 14, 1995, where it provided alternative text for the <img> element's content when user agents could not process the referenced image resource. This early definition positioned alt primarily as a fallback mechanism for non-graphical rendering or failed loads, reflecting the nascent web's focus on basic interoperability amid varying browser capabilities. Subsequent iterations, such as HTML 3.2 recommended by the (W3C) on January 14, 1997, retained the alt attribute for <img> tags to supply text labels, enabling browsers to display substitutes for images while introducing attributes like width and height for layout predictability. By HTML 4.01, finalized as a W3C Recommendation on December 24, 1999, alt became mandatory for <img> elements, explicitly requiring "an appropriate textual replacement for the image" to support non-visual access, marking a shift toward as a core web principle. This requirement persisted in 1.0 (W3C Recommendation, January 26, 2000), enforcing stricter validation for equivalent prose. The transition to , governed by the 's living standard (initial editor's draft circa 2004, W3C Recommendation October 28, 2014), relaxed the mandatory status of alt for <img> but designated it as conforming only when present or justified absent (e.g., for decorative images via alt=""), emphasizing its role in providing text alternatives for assistive technologies like screen readers. This evolution aligned with (WCAG) 2.0, published as a W3C Recommendation on December 11, 2008, where Success Criterion 1.1.1 (Non-text Content, Level A) mandates text alternatives for all non-text , including images, with alt as the primary mechanism. WCAG 2.1 (W3C Recommendation June 5, 2018) further refined guidance without altering alt's syntax, reinforcing its empirical utility in causal chains of —ensuring conveyance independent of visual rendering—while critiquing implementations that omit it despite browser support exceeding 99% globally. Over time, standards bodies like W3C and have iteratively prioritized alt for causal realism in , evidenced by reduced fallback display in modern graphical browsers but sustained necessity for text-based agents and error states.

Technical Implementation

Syntax and Attributes

The alt attribute is specified on the <img> element in HTML using the syntax alt="text alternative", where the value provides a textual substitute for the image's content or function when the image cannot be rendered. This attribute is required for all <img> elements, except in limited cases such as when the image is embedded in a <figure> element with a <figcaption> that serves as the alternative or when a non-empty title attribute is present and no suitable text alternative exists. The value must be a string enclosed in double or single quotes (or unquoted if it contains no spaces, quotes, or greater-than signs), and it should convey equivalent meaning to the image without describing its format, filename, or presence (e.g., avoiding phrases like "image of" or "picture"). For purely decorative images or those redundant with adjacent text (e.g., icons repeating textual links), an empty string value alt="" is permitted and recommended to indicate no informative content, preventing screen readers from announcing unnecessary details. In contrast, for substantive images like photographs or diagrams, the value must be descriptive yet concise, equivalent to what sighted users perceive (e.g., "A bar chart showing quarterly sales growth from 2020 to 2024" rather than a verbose caption). Logos representing entities should use the entity's name in the value (e.g., alt="xAI logo" for a company logo), unless the logo is decorative or accompanied by its name in text. The alt attribute interacts with other <img> attributes like src (specifying the image resource) and title (providing advisory information on hover), but it takes precedence for accessibility tools; the title value does not substitute for alt and should not duplicate it. Omission of alt without justification constitutes a conformance error in HTML parsing and validation tools, as it fails to provide required fallback text for non-visual rendering. In scripted contexts, the alt property of the HTMLImageElement interface reflects and sets this attribute's value dynamically.

Interaction with Other Elements

The alt attribute on an <img> element interacts with the <picture> element by being specified exclusively on the nested <img>, ensuring the alternative text applies to whichever image source the user agent selects based on media conditions or viewport size; this maintains consistent accessibility across responsive variants without requiring separate alt values for each <source>. When an <img> serves as the sole content within a hyperlink (<a>) or interactive control like a , the alt attribute's text must convey the purpose or destination of the link, functioning as the accessible name for the interactive rather than merely describing the image's appearance. For form submissions, the alt attribute on an <input type="image"> describes the graphical 's role, such as "Submit query," enabling screen readers to announce its function during form .) Within a <figure> element, the alt attribute provides the core textual replacement for the image, while any accompanying <figcaption> supplies supplemental captioning or context; the specification permits omitting alt if the <figcaption> fully conveys the image's purpose, though including descriptive alt text remains the preferred practice to avoid reliance on potentially inconsistent fallback mechanisms. The alt attribute also interfaces with ARIA attributes like aria-label or role="presentation", where it establishes the native accessible name unless explicitly overridden, but ARIA should not substitute for alt in standard cases to preserve semantic integrity. Unlike the [title](/page/Title) attribute, which offers advisory hover text visible only on mouse interaction and is unreliable for accessibility, alt takes precedence as the primary fallback, with title serving merely as non-essential supplementation without altering alt's rendering behavior. In contexts like image maps, alt on <area> elements within <map> interacts similarly with linked <img> by providing region-specific descriptions, ensuring coordinated accessibility for complex clickable diagrams.

Usage Guidelines

Accessibility Applications

The alt attribute provides a textual description of an image's content and purpose, which screen readers convert to speech or output for users with visual impairments. This mechanism allows blind or low-vision individuals to access information conveyed by images, such as charts conveying data trends or photographs illustrating concepts, without relying on . In assistive technologies, screen readers like or NVDA parse the alt attribute and announce its contents in lieu of rendering the image, enabling users to navigate and understand web pages equivalently to sighted users. For functional images, such as form submit buttons, the alt text specifies the action (e.g., "Submit query"), aiding interaction for those unable to see icons. (WCAG) 2.1 Success Criterion 1.1.1 requires non-text content, including images, to have equivalents via alt attributes unless purely decorative, where an empty attribute (alt="") signals screen readers to skip announcement and maintain efficient navigation. Descriptive alt text for informative images focuses on conveying the image's communicative role rather than exhaustive visual details, such as summarizing key data points in a rather than listing every . Empirical evaluations indicate that well-crafted alt text significantly enhances comprehension; for instance, a 2022 study on automatic image captioning found that human-verified alt equivalents improved user understanding of web images by providing contextually relevant descriptions over absent or generic placeholders. In text-based browsers like , which emulate non-visual access similar to screen readers, alt text directly substitutes for images, demonstrating its foundational role in rendering content accessibly across environments.

SEO and Fallback Mechanisms

The alt attribute functions as a primary fallback mechanism for images in , displaying its text content whenever the referenced image resource fails to load due to factors such as network errors, broken source paths, or insufficient . This ensures that users in constrained environments, including those with slow connections or using legacy text-based browsers, receive contextual information rather than blank spaces or placeholders. For instance, in non-graphical user agents like command-line browsers, the alt text replaces the image entirely, maintaining page readability and semantic integrity. In search engine optimization (SEO), the alt attribute aids image discoverability by providing descriptive metadata that web crawlers use to index and contextualize visual content, particularly for queries targeting or related visual search features. Google's guidelines emphasize crafting alt text that focuses on the image's functional purpose and key details—such as "red on a racetrack" rather than generic or keyword-stuffed phrases—to help algorithms match images to without misleading descriptions. While not a dominant signal, well-implemented alt text correlates with improved visibility in image search results, as it supplements surrounding textual and structured , potentially driving up to 20% of site traffic from image-based referrals according to optimization analyses. However, SEO benefits derive secondarily from accessibility-aligned practices, as engines prioritize user-relevant content over manipulative tactics like excessive keyword inclusion in alt values. These dual roles—fallback reliability and support—underscore the attribute's integration into broader web resilience strategies, where it bridges visual and textual representation without relying on scripting or additional elements like the <picture> fallback, which still mandates alt for the core <img> . Empirical studies of search performance indicate that sites neglecting descriptive alt text experience diminished image rankings, as crawlers infer less about non-text assets, though direct causation remains indirect and context-dependent.

Handling Decorative Images

Decorative images are graphical elements included solely for aesthetic enhancement, visual formatting, or stylistic purposes without conveying substantive information, such as ornamental borders, background patterns, or non-informative icons that duplicate text-based equivalents. Examples include spacer gifs historically used for or purely visual flourishes like decorative bullets where the surrounding text already provides the necessary meaning. The primary guideline for handling such images in is to provide an empty alt attribute value, specified as alt="", which instructs screen readers and other assistive technologies to ignore the image entirely rather than announcing placeholder text. This approach aligns with (WCAG) Success Criterion 1.1.1, which permits null or empty alternative text for pure decoration to avoid cluttering the auditory experience for users relying on non-visual rendering. Using descriptive text like alt="decorative" is discouraged, as it results in unnecessary announcements such as "decorative image," increasing without benefit. For optimal implementation, developers should prefer CSS background images over <img> elements for purely decorative content, as background images inherently lack an alt attribute and are not exposed to accessibility APIs. When <img> tags are unavoidable—such as due to legacy code or specific requirements—an empty alt ensures fallback behavior in non-graphical browsers or error states displays no extraneous content. Additionally, combining alt="" with role="presentation" on the <img> element can reinforce semantic intent for advanced assistive technologies, though the empty alt alone suffices in most cases per WCAG conformance. Misclassifying images as decorative can lead to failures; for instance, an image providing subtle contextual emphasis, like a mood-setting integral to user understanding, requires descriptive alt text instead. Empirical testing with tools like screen readers (e.g., NVDA or ) confirms that empty alt attributes effectively suppress output for verified decorative cases, reducing announcement verbosity by up to 20-30% in image-heavy pages according to audits.

Criticisms and Challenges

Common Implementation Errors

Omission of the alt attribute on images that convey meaningful content is among the most prevalent errors, rendering the image inaccessible to users and violating WCAG success criterion 1.1.1 (Non-text Content). This failure occurs when developers assume visual rendering suffices, ignoring fallback needs for users with visual impairments or slow connections, as documented in WCAG techniques where absent alt attributes prevent assistive technologies from processing image purpose. Providing an empty alt attribute (alt="") for non-decorative images that contribute to page understanding instructs screen readers to skip the content entirely, effectively hiding critical information such as charts or diagrams. Conversely, assigning descriptive alt text to purely decorative elements like background patterns clutters audio output without adding value, contravening guidelines to use null alt only for ignorable visuals. Alt text often redundantly prefixes descriptions with phrases like "image of" or "photo of," despite screen readers automatically announcing the image role, which adds unnecessary verbosity and deviates from concise purpose-focused wording recommended by accessibility standards. Developers also err by mirroring adjacent caption or body text in alt attributes, failing to capture the image's independent semantic role, such as when an infographic's data is restated verbatim rather than summarized functionally. Using file names (e.g., "chart.png") or placeholders like "graphic" as alt values provides no contextual utility, treating the attribute as a formality rather than a descriptive equivalent, a pitfall noted in evaluations of real-world implementations where such generics yield zero assistive benefit. For repeated images, such as product thumbnails or icons, identical alt text across instances ignores contextual variance, causing screen readers to announce repetitive content that disorients users. Alt text exceeding 100-125 characters burdens screen reader navigation, as overly detailed visual descriptions (e.g., pixel-level colors) prioritize aesthetics over functional brevity, per WCAG emphasis on equivalent facilitation without overload. In linked images, omitting or inadequately describing the link purpose within alt text confuses and navigation, amplifying errors in interactive contexts like buttons or navigation icons.

Debates on Effectiveness and Burden

The effectiveness of the alt attribute in enhancing remains debated, with indicating that while it provides a textual substitute for images in screen readers, its impact is often diminished by inconsistent implementation. A study analyzing alt text in image-dense identified nine common "malicious" patterns—such as overly verbose descriptions, irrelevant details, or omissions—that confuse or overburden screen reader users, leading to skipped content or frustration rather than improved comprehension. Similarly, evaluations of automatic image captioning tools, intended to generate alt text, reveal frequent inaccuracies when compared to references, with generated descriptions failing to capture contextual in 40-60% of cases across tested datasets. Proponents argue that well-crafted alt text directly conveys visual purpose, aiding navigation for visually impaired users, yet critics note that redundancy with surrounding text reduces its unique value, as highlighted in usability research emphasizing that alt text should prioritize non-redundant, task-oriented meaning over mere visual replication. Critics further contend that the attribute's effectiveness is overstated due to widespread misuse, including over-description that paradoxically hinders efficiency for users who process information sequentially. For instance, interviews with users reveal preferences for concise alt text focused on functional intent rather than exhaustive detail, with excessive verbosity causing cognitive overload akin to navigating cluttered audio narratives. experts caution against overuse, observing that applying alt text to purely decorative images—without using empty alt=""—introduces unnecessary , compelling users to parse irrelevant content and undermining the attribute's core utility. These issues persist despite guidelines, as real-world audits show alt text omission or inadequacy in up to 70% of web images, per broader surveys, questioning whether reliance on manual alt provision yields proportional benefits without complementary tools like AI augmentation. The burden of authoring effective alt text falls heavily on web developers and content creators, often perceived as a time-intensive task that diverts resources from core functionality. Developers report challenges in discerning appropriate descriptions, particularly for complex visuals, with one analysis noting that crafting contextually accurate alt text requires domain-specific knowledge and iterative refinement, extending production timelines by 20-50% for image-heavy sites. This labor is exacerbated in high-volume scenarios, such as or , where manual writing for hundreds of assets feels laborious, prompting experimentation with tools to automate generation—though these introduce risks of generic or erroneous outputs that still demand human oversight. Advocates for reduced burden propose guidelines like pre-writing alt equivalents before image selection to integrate into workflows, yet implementation gaps persist, as evidenced by developer forums and studies highlighting shortcuts like text that negate benefits. Ultimately, this developer-centric load raises causal questions about scalability: without automated or standardized aids, the attribute's mandate may inadvertently prioritize compliance checklists over genuine usability gains, fostering resentment and suboptimal adoption.

Key Lawsuits and Precedents

In National Federation of the Blind v. Corp. (filed April 2006 in the U.S. District Court for the Northern District of ), plaintiffs alleged that Target's website violated the Americans with Disabilities (ADA) III by denying blind users equal access, specifically citing the absence of alternative text ( attributes) for images, which prevented software from vocalizing image content and functionality. The court denied Target's motion to dismiss in June 2007, ruling that websites qualify as places of public accommodation under ADA if they connect to physical stores, establishing an early precedent for digital accessibility liability tied to in-person services. The case settled in 2008, with Target agreeing to implement (WCAG) standards—including proper text for non-decorative images—across its site, paying $3.7 million in plaintiffs' attorneys' fees, and submitting to ongoing monitoring by the National Federation of the Blind. This outcome set a benchmark for attribute requirements in , influencing subsequent DOJ guidance on equivalent facilitation for visual content. Subsequent cases have reinforced Target's implications for alt text omissions. In Fox News Network, LLC v. J.L. (filed 2018 in the Southern District of ), the complaint highlighted missing alt text for images and links as a barrier for users navigating content, leading to a class-action settlement focused on remediation under ADA and Human Rights Law. Similarly, Hasbro, Inc. v. J.L. (filed 2023) alleged ADA violations from absent alt text on fan site images, underscoring persistent enforcement against and entities for failing to describe graphical elements meaningfully. These rulings affirm that inadequate alt attributes constitute discriminatory barriers when they hinder users from perceiving equivalent information, per WCAG Success Criterion 1.1.1 (Non-text Content). While no U.S. precedent directly mandates alt attributes, the Court's 2019 denial of in Domino's Pizza, LLC v. Robles upheld Ninth Circuit findings that ADA covers websites and apps lacking features, including image descriptions, broadening liability for alt failures in spaces. Federal courts continue to cite Target in dismissing challenges to ADA's extraterritorial reach over , emphasizing empirical evidence of harm from missing alt text, such as unverifiable image purposes for visually impaired users. As of mid-2025, missing or incorrect alt text remains the most frequently alleged violation in over 4,000 annual ADA Title III filings, per litigation trackers, driving settlements prioritizing automated and manual alt implementation.

Compliance Mandates and Risks

The (WCAG) 2.1, issued by the on June 5, 2018, require text alternatives for all non-text content via the HTML alt attribute under Success Criterion 1.1.1 Non-text Content (Level A), ensuring users receive equivalent purpose and information from images. This mandate extends to WCAG 2.2, published October 5, 2023, which retains the criterion while adding techniques for complex images. In the United States, Section 508 of the Rehabilitation Act of 1973, refreshed in 2017, explicitly mandates meaningful alt text for images in federal electronic content to enable access by individuals with visual impairments. The Americans with Disabilities Act (ADA) of 1990 applies to websites operated by places of public accommodation, interpreting digital barriers like absent or inadequate alt attributes as discriminatory under Title III; courts have upheld WCAG conformance as a relevant standard in such cases. A U.S. Department of Justice final rule effective April 24, 2024, reinforces this by requiring state and local government websites and apps to meet WCAG 2.1 Level AA, including alt text provisions, with phased compliance deadlines through 2027. Internationally, the , adopted June 2019 and mandating compliance by June 28, 2025, incorporates WCAG-aligned requirements for alt attributes in digital services. Failure to implement proper alt attributes exposes entities to civil lawsuits, with missing or deficient alt text cited as a primary violation in thousands of ADA Title III filings annually; for instance, over 2,500 such suits were reported in federal courts in the first half of 2023 alone, many targeting e-commerce sites for image accessibility failures. Settlements and penalties vary but have included multimillion-dollar injunctions and fees; Greyhound Lines settled an ADA website suit for $300,000 in 2023, partly addressing uncaptioned images and alt deficiencies. Non-compliance can also trigger regulatory investigations, reputational damage from public scrutiny, and lost revenue from excluded customer segments, as inaccessible sites deter approximately 8% of users with disabilities who abandon non-compliant pages. Defendants may mitigate risks through voluntary remediation or WCAG audits, though serial litigants have driven a 20-fold increase in filings since 2017, emphasizing proactive alt implementation.

Recent and Future Developments

Technological Advancements

Recent advancements in the alt attribute have primarily centered on (AI) and (ML) tools for automated generation of alternative text, addressing longstanding challenges in manual creation for large-scale web content. These systems leverage models to analyze image content, producing descriptive captions that serve as alt text, thereby enhancing without relying solely on human input. For instance, Microsoft's AI Image Analysis, updated in February 2025, employs captioning models to generate one-sentence descriptions of images, which can be directly used or refined as alt attributes. Similarly, commercial tools like AltText.ai integrate AI-driven analysis to automatically tag uploaded images in content management systems (CMS), with plugins available for platforms such as since at least 2023. These AI solutions typically process visual elements—such as objects, scenes, and actions—via pre-trained neural networks, outputting concise, context-aware text that aligns with (WCAG) recommendations for brevity and relevance. Adoption has accelerated between 2023 and 2025, driven by integrations in and media platforms, where bulk image processing reduces implementation errors and improves compliance rates. However, empirical evaluations indicate limitations; AI-generated alt text often excels for simple imagery but struggles with abstract, cultural, or domain-specific content, necessitating human oversight to ensure accuracy and avoid generic outputs like "a group of ." Browser and standards bodies have seen incremental enhancements in alt handling, though core attribute functionality remains stable per HTML specifications. Modern browsers like and , through extensions and developer tools, now support previewing and suggesting alt refinements, with updates to APIs such as property documented as of October 2025 for better fallback rendering. The W3C's ongoing tutorials, including decision trees for alt usage, emphasize these tools' role in scalable implementation, but no fundamental revisions to the alt attribute itself have occurred in recent HTML Living Standards. Future integration with emerging may further automate validation, potentially tying alt generation to real-time in dynamic sites.

Emerging Standards and Tools

In recent years, the 2.2, published by the in October 2023, have reinforced the requirement for equivalent alternatives to non-text content, including the use of the alt attribute for images to ensure perceivability for users with visual impairments. This update builds on prior versions by clarifying success criteria such as 1.1.1 (Non-text Content), mandating short, descriptive alt text that conveys the image's purpose without unnecessary details, while allowing empty alt="" for purely decorative images. Emerging tools increasingly leverage (AI) to automate alt attribute generation, addressing implementation burdens while aiming for WCAG compliance. For instance, AI's Image Analysis service, updated as of February 2025, uses models to caption images and produce alt text suitable for screen readers, supporting legal accessibility mandates by analyzing visual elements like objects, scenes, and text overlays. Similarly, platforms like AltText.ai provide APIs and plugins for content management systems (), generating multilingual alt descriptions in over 130 languages by processing image metadata and context, with integrations for and sites to retroactively apply text to existing images. Other AI-driven solutions include Contentful's AltText AI marketplace app, which integrates directly into digital asset management workflows to produce SEO-optimized alt text upon image upload, and open-source efforts like those from the , which employ generative models to create context-aware descriptions for complex visuals such as charts. However, experts note limitations in these tools, as automated generation often fails to incorporate surrounding page context or nuanced intent, potentially resulting in generic or inaccurate descriptions that require human oversight for full WCAG adherence. This has prompted discussions in accessibility communities about approaches, combining drafts with manual validation to balance efficiency and precision.

References

  1. [1]
    Use the alt attribute to describe the function of each visual - W3C
    The alt attribute is defined in a set of tags (namely, img, area and optionally for input and applet) to allow you to provide a text equivalent for the object.
  2. [2]
    HTMLImageElement: alt property - Web APIs | MDN
    Oct 13, 2025 · The HTMLImageElement property alt provides fallback (alternate) text to display when the image specified by the element is not loaded.<|separator|>
  3. [3]
    H36: Using alt attributes on images used as submit buttons - W3C
    The alt attribute of the input element is used to provide a functional label. This label indicates the button's function, but does not attempt to describe the ...
  4. [4]
    H37: Using alt attributes on img elements | Techniques for WCAG 2.0
    When using the img element, specify a short text alternative with the alt attribute. Note. The value of this attribute is referred to as alt text.
  5. [5]
    The alt Attribute On img:Information Encoding And Markup Languages
    The alt attribute was introduced in the earliest versions of HTML to allow for pages that included images to be rendered on text terminals. Over the years, it ...
  6. [6]
    An alt Decision Tree | Web Accessibility Initiative (WAI) - W3C
    This decision tree describes how to use the alt attribute of the <img> element in various situations.
  7. [7]
    Decorative Images | Web Accessibility Initiative (WAI) - W3C
    The examples below show how to use the alt attribute when decorative images are provided using the <img> element. Where possible, decorative images should ...
  8. [8]
    Don't Overuse the HTML Alt Attribute - Bureau of Internet Accessibility
    Nov 30, 2023 · The primary purpose of the attribute is to stand in for visual content when the user cannot perceive the content visually due to a disability, a ...
  9. [9]
    Why you Should use Alt Tags for Accessibility (Instead of SEO)
    Apr 20, 2023 · It's important to realize the purpose of the alt tag is very specific. It exists to provide a text alternative for the image in question.
  10. [10]
    Tips and Tricks | Web Accessibility Initiative (WAI) - W3C
    The alt text should be the most concise description possible of the image's purpose. If anything more than a short phrase or sentence is needed, it would be ...Missing: definition | Show results with:definition
  11. [11]
    Accessibility: Image Alt text best practices - Siteimprove Support
    Oct 30, 2024 · If no alt attribute is present, the screen reader will read the file name for the image instead, which can be a major distraction to those ...Alt text for informative images · Alt text for decorative images · Image with text
  12. [12]
    Write helpful Alt Text to describe images | Digital Accessibility​
    Alternative (Alt) Text is a brief text description of images and graphics, and is an essential part of making content accessible.
  13. [13]
  14. [14]
  15. [15]
  16. [16]
  17. [17]
  18. [18]
  19. [19]
    Resources on Alternative Text for Images - W3C
    The section of the HTML5 specification that addresses the authoring of useful alt attribute content. Designed to address the immediate needs of web authors ...Missing: HTML | Show results with:HTML
  20. [20]
    EQTDS: MAKING ALTERNATIVE TEXT MORE FUNCTIONAL - RESNA
    The idea of providing alternative text for non- text elements of web pages is almost as old as the World Wide Web. The 'alt' attribute was included in the first ...
  21. [21]
    The Origin of the IMG Tag - The History of the Web
    Mar 7, 2017 · In early implementations, the alt attribute even doubled as the tooltip shown to users when they hovered over images. This prompted developers ...
  22. [22]
    RFC 1866 - Hypertext Markup Language - 2.0 - IETF Datatracker
    HTML user agents may process the value of the ALT attribute as an alternative to processing the image resource indicated by the SRC attribute. NOTE - Some HTML ...
  23. [23]
    HTML 3.2 Reference Specification - W3C
    Mar 15, 2018 · HTML allows CDATA attributes to be unquoted provided the attribute ... The ALT attribute is used to provide text labels which can be ...
  24. [24]
    HTML Standard
    Summary of each segment:
  25. [25]
    Web Content Accessibility Guidelines (WCAG) 2.1 - W3C
    May 6, 2025 · Web Content Accessibility Guidelines (WCAG) 2.1 covers a wide range of recommendations for making web content more accessible.Translations of W3C standards · Text Alternatives · Understanding Text SpacingMissing: evolution | Show results with:evolution
  26. [26]
  27. [27]
  28. [28]
  29. [29]
    Alternative Text - WebAIM
    Oct 19, 2021 · Screen readers announce alternative text in place of images, helping users with visual or certain cognitive disabilities perceive the content ...Context Is Everything · Functional Images · Advanced Images<|separator|>
  30. [30]
    Authoring Meaningful Alternative Text - Section508.gov
    When writing alt text, follow these guidelines: Alt text should be short and to the point. Alt text should communicate the same information as the visual ...
  31. [31]
    Evaluating the effectiveness of automatic image captioning for web ...
    Aug 22, 2022 · In this study, we will use the alt property and often adopt the term alt-text to denote image descriptions. Describing online images and photos ...
  32. [32]
    HTML: A good basis for accessibility - Learn web development | MDN
    Oct 7, 2025 · Note that the contents of the alt attribute should always provide a direct representation of the image and what it conveys visually. The alt ...
  33. [33]
    HTML img alt Attribute - W3Schools
    The required alt attribute specifies an alternate text for an image, if the image cannot be displayed. The alt attribute provides alternative information for an ...
  34. [34]
    Use of ALT texts in IMG s - HTML Help
    The ALT text is meant to provide alternative or substitute text, primarily for use when the image is not being displayed.
  35. [35]
    Image SEO Best Practices | Google Search Central | Documentation
    Jul 11, 2025 · Also, alt text in images is useful as anchor text if you decide to use an image as a link. When writing alt text, focus on creating useful, ...Help us discover and index... · Use HTML image elements to... · Add structured dataMissing: benefits | Show results with:benefits
  36. [36]
    Google Shows How To Use Alt Text For SEO - Search Engine Journal
    Sep 23, 2024 · The purpose of “alt” is to provide alternate information about an image that can help a site visitor who might not be able to see the image and ...
  37. [37]
    Is Image Alt Text Still Important for SEO in 2025? - Amasty
    Feb 23, 2022 · Google's Image Publishing Guidelines recommend using descriptive alt text to improve image search optimization. With approximately 20% of all ...Table Of Content · How To Use Alt Text For Seo · Don't Stuff Keywords<|control11|><|separator|>
  38. [38]
    HTML Tags Guide: Basics & Best Practices - Search Engine Land
    Apr 2, 2025 · The primary purpose of alt text should be accessibility, with SEO benefits following naturally from well-crafted descriptions. Poor, keyword- ...
  39. [39]
    html - Fallback picture for <PICTURE> - Stack Overflow
    Jul 2, 2015 · All image tags always need src and alt attribute -- these are required attributes for the <img> tag. A valid example of the <picture> tag, ...Inputting a default image in case the src attribute of an html <img> is ...HTML img tag: title attribute vs. alt attribute? - Stack OverflowMore results from stackoverflow.com
  40. [40]
    How To Write the Best Alternative Text - Moz
    It helps improve web accessibility and optimize for search engines. Alt attributes play a crucial role in enhancing both accessibility and SEO.
  41. [41]
    HTML images - Learn web development | MDN
    Aug 21, 2025 · Alternative text · Decoration. You should use CSS background images for decorative images, but if you must use HTML, add a blank alt="" .HTML video and audio · Test your skills · CDN
  42. [42]
    Decorative Images - Accessible Publishing Knowledge Base
    When an image is purely decorative, its alt attribute should be left empty. This signals to assistive technologies not to announce the presence of the image, ...
  43. [43]
    How to Identify Decorative Images and Boost Accessibility
    Nov 7, 2024 · Properly marking decorative images in HTML · Supply an empty alt attribute · Use the role=”presentation” attribute.
  44. [44]
    Alt Text: What to Write - NN/G
    Nov 22, 2024 · Summary: Images are decorative, functional, or informative. Skip alt text for decorative. Describe the action for functional.
  45. [45]
    Alt text for Accessibility Examples, Tips & Best Practices
    Apr 13, 2025 · Alt text for HTML helps improve accessibility by providing context for screen readers and search engines. When an image can't be displayed, the ...
  46. [46]
    Failures | Techniques for WCAG 2.0 - W3C
    This document describes a failure that occurs when a change in the appearance of text conveys meaning without using appropriate semantic markup. This failure ...
  47. [47]
    6 Common Alt Text Mistakes & How to Avoid Them - Allyant
    Oct 26, 2023 · Don't use “image of” or “graphic of”. Avoid using “image of” or similar phrases when writing alt text. Screen readers will automatically inform ...
  48. [48]
    Alt Text: Not Always Needed - NN/G
    Nov 15, 2024 · Write alt text that communicates an image's purpose without repeating page content. Focus on meaning rather than visual description.Missing: empirical studies
  49. [49]
    8 Common Image Alt Text Mistakes to Stop Making
    Mar 17, 2020 · Common alt text mistakes include using "image of", not repeating text in images, using "company logo" without the company name, and not using ...
  50. [50]
    “Malicious” Pictorials: How Alt Text Matters to Screen Reader Users ...
    Jul 1, 2024 · We identify nine “malicious” alt text patterns that riddle pictorials and three novel accessible alt text patterns to guide authors of image-dense media.
  51. [51]
    [PDF] An Image for All: The Rhetoric for Writing Alt-Text | ScholarWorks
    This paper uses preliminary interview data with screen reader users to understand the complex rhetorical experience of alt-text use in an effort to offer more.<|control11|><|separator|>
  52. [52]
    The Debate About Alt Text - Accessible Social
    Mar 11, 2021 · The debate is about prioritizing accessibility for users with disabilities over SEO when writing alt text, which is the written description of ...
  53. [53]
    Writing Alt Text for Accessibility: Guidelines and Examples
    Apr 5, 2018 · For developers & designers, it is not easy to determine when to use alt text & how to make it effective. Visit our blog to learn how to ...<|separator|>
  54. [54]
    Writing alt text with AI | Jared Cunha
    Jun 25, 2025 · Writing alt text for images to make them accessible to screen readers can often feel like a chore, especially when dealing with a large number ...Missing: developers | Show results with:developers
  55. [55]
    In what situations should we *not* add alt text to an image?
    Nov 8, 2024 · A rule of thumb I've heard before is 'write your alt text BEFORE picking the image'. Because it ensures you're not just dropping images in for the sake of it.Missing: mistakes | Show results with:mistakes
  56. [56]
    National Federation of the Blind v. Target Corporation
    Specifically, NFB alleged that the site lacks “alternative text” coding that permits screen reader software to vocalize the contents of the site to ...
  57. [57]
    [PDF] National Federation of the Blind v. Target Corp. - Duane Morris
    Mar 30, 2006 · Web accessibility requires that alt-text be coded with each picture so that a screen reader can speak the alternative text while a sighted user ...
  58. [58]
    A Cautionary Tale of Inaccessibility: Target Corporation - W3C
    Dec 14, 2009 · The settlement required Target's progress in making the Target website accessible to be monitored by the NFB ('monitored compliance'), and that ...
  59. [59]
    Title III Lawsuits: 10 Big Companies Sued Over Website Accessibility
    Apr 4, 2024 · In particular, the lawsuit cited a lack of alt text for images and links, as well as redundant or empty links that hampered keyboard-based ...
  60. [60]
    Top 8 ADA Website Compliance Lawsuits (+ How To Prevent) - Oyova
    Jun 24, 2025 · The complaint stated that the site violated the ADA by lacking alternative text for images, properly labeled link headings, and other accessible ...
  61. [61]
    Supreme Court Allows Suit Over Website Accessibility
    In ignoring Domino's appeal, the Supreme Court opens up the door for lawsuits challenging the accessibility of websites and mobile apps to people with ...
  62. [62]
    Examining New York Court Decisions on Website Accessibility ...
    Jan 6, 2025 · In New York, federal courts have dismissed cases for failure to meet all elements of a Title III Americans with Disabilities Act (ADA) claim.
  63. [63]
  64. [64]
    A Rise in ADA Website Accessibility Lawsuits May Leave You Asking
    Jul 11, 2025 · Websites with digital barriers, like missing alt text or broken links, can be sued under ADA. Even small companies with online presence are at ...
  65. [65]
    Fact Sheet: New Rule on the Accessibility of Web Content ... - ADA.gov
    Apr 8, 2024 · The final rule has specific requirements about how to ensure that web content and mobile applications (apps) are accessible to people with disabilities.
  66. [66]
    ADA Website Compliance Lawsuits in 2025 Minimize Risk - UserWay
    An example of an ADA website lawsuit is Greyhound, who recently paid $300,000 for an ADA compliance lawsuit and the standard $75,000 civic penalty. The company ...
  67. [67]
    ADA Compliance Fines: What They Cost & Who's at Risk - AudioEye
    Oct 16, 2025 · Missing alt text on images · Inaccessible forms or navigation · Lack of keyboard or assistive technology compatibility · Videos without captions or ...
  68. [68]
    Generate alt text of images with Image Analysis - Azure AI services
    Feb 21, 2025 · Auto-generate alt text with Image Analysis. Image Analysis offers image captioning models that generate one-sentence descriptions of an image's ...What is alt text? · Auto-generate alt text with...
  69. [69]
    Automatically generate image alt text for SEO and accessibility ...
    Rating 4.7 (35) · FreeAltText.ai automatically generates alt text for your images. Automatic: Every uploaded image is analyzed and alt text is automatically added to the image ...
  70. [70]
    Free Alt Text Image Generator 130+ Languages
    Automatically generate alt text for every new image you add to your media library. Plus, repair all your existing images with our bulk updater.
  71. [71]
    AltText AI - Contentful
    AltText AI automatically generates alt text for your images. Improve your SEO ranking and site accessibility scores by including alternative text on every image ...
  72. [72]
    Alt Text Best Practices 2025: Complete Guide + AI Automation
    Rating 4.8 (200) · FreeJun 2, 2024 · Master alt text with WCAG 2.2 requirements, AI-powered generation, and testing methods for perfect image accessibility.
  73. [73]
    Automatic Alt Text Generator - University of Michigan
    A team of University of Michigan students developed three tools leveraging generative AI to automatically create alternative text, commonly called Alt-Text, to ...
  74. [74]
    Stumbled upon a neat alt text generator - any thoughts? : r/accessibility
    Feb 12, 2024 · It's been a game-changer for me. I've been using it to add alt text to images on my blogs, and it's surprisingly on point. It's integrated with ...Do you know any AI based image alt generator? : r/Frontend - RedditI built an alt text generator - looking for feedback! : r/accessibilityMore results from www.reddit.com