Saved in:
Bibliographic Details
Main Authors: Ahmed, Ammar, Fresco, Margarida, Forsberg, Fredrik, Grotli, Hallvard
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2501.03572
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912489975840768
author Ahmed, Ammar
Fresco, Margarida
Forsberg, Fredrik
Grotli, Hallvard
author_facet Ahmed, Ammar
Fresco, Margarida
Forsberg, Fredrik
Grotli, Hallvard
contents Web accessibility ensures that individuals with disabilities can access and interact with digital content without barriers, yet a significant majority of most used websites fail to meet accessibility standards. This study evaluates ChatGPT's (GPT-4o) ability to generate and improve web pages in line with Web Content Accessibility Guidelines (WCAG). While ChatGPT can effectively address accessibility issues when prompted, its default code often lacks compliance, reflecting limitations in its training data and prevailing inaccessible web practices. Automated and manual testing revealed strengths in resolving simple issues but challenges with complex tasks, requiring human oversight and additional iterations. Unlike prior studies, we incorporate manual evaluation, dynamic elements, and use the visual reasoning capability of ChatGPT along with the prompts to fix accessibility issues. Providing screenshots alongside prompts enhances the LLM's ability to address accessibility issues by allowing it to analyze surrounding components, such as determining appropriate contrast colors. We found that effective prompt engineering, such as providing concise, structured feedback and incorporating visual aids, significantly enhances ChatGPT's performance. These findings highlight the potential and limitations of large language models for accessible web development, offering practical guidance for developers to create more inclusive websites.
format Preprint
id arxiv_https___arxiv_org_abs_2501_03572
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle From Code to Compliance: Assessing ChatGPT's Utility in Designing an Accessible Webpage -- A Case Study
Ahmed, Ammar
Fresco, Margarida
Forsberg, Fredrik
Grotli, Hallvard
Human-Computer Interaction
Artificial Intelligence
Computation and Language
D.1.2; F.3.1; F.4.1; D.3.2; H.1.2; H.5.2; D.2.2; H.1.2; I.3.6; H.5.4; H.5.1
Web accessibility ensures that individuals with disabilities can access and interact with digital content without barriers, yet a significant majority of most used websites fail to meet accessibility standards. This study evaluates ChatGPT's (GPT-4o) ability to generate and improve web pages in line with Web Content Accessibility Guidelines (WCAG). While ChatGPT can effectively address accessibility issues when prompted, its default code often lacks compliance, reflecting limitations in its training data and prevailing inaccessible web practices. Automated and manual testing revealed strengths in resolving simple issues but challenges with complex tasks, requiring human oversight and additional iterations. Unlike prior studies, we incorporate manual evaluation, dynamic elements, and use the visual reasoning capability of ChatGPT along with the prompts to fix accessibility issues. Providing screenshots alongside prompts enhances the LLM's ability to address accessibility issues by allowing it to analyze surrounding components, such as determining appropriate contrast colors. We found that effective prompt engineering, such as providing concise, structured feedback and incorporating visual aids, significantly enhances ChatGPT's performance. These findings highlight the potential and limitations of large language models for accessible web development, offering practical guidance for developers to create more inclusive websites.
title From Code to Compliance: Assessing ChatGPT's Utility in Designing an Accessible Webpage -- A Case Study
topic Human-Computer Interaction
Artificial Intelligence
Computation and Language
D.1.2; F.3.1; F.4.1; D.3.2; H.1.2; H.5.2; D.2.2; H.1.2; I.3.6; H.5.4; H.5.1
url https://arxiv.org/abs/2501.03572