Thosearespecialattributesthatcanbeusedbyscreenreadersortext-to-speechprogramstomakeyourprogramaccessibletopeoplewithdisabilitiesorwhouseassistivetechnology。
AccessibleNamecanbeusedtotelltheusertheelementthecursorissittingin。E。g。theassistivetechnologyprogramcan’tdeterminwhichlabelaroundthetextboxbelongstoit,butit’sabletoreadthatattribute(i。
e。"what’sthemeaningofthisbox?")。AmoredetaileddescriptioncanbeaddedtoAccessibleDescription。InasimilarwayAccessibleRoledescribestheuser(ortellsthetool)whatkindofcontrolthisis。
Thisisn’tasimportantforthestandardcontrols,butimaginesomecustombuttonorhyperlinkcontrol:Withthisattributeit’sabletotell"Hey,I’mclickableandI’mabutton/link!"。
accessiblerole_c 和 accessiblerole 通常与网页开发中的辅助技术(如屏幕阅读器)相关,用于指定HTML元素的角色,以便更好地帮助残障用户理解和操作网页内容。然而,这两个术语并不是标准的WAI-ARIA(Web Accessibility Initiative - Accessible Rich Internet Applications)角色属性值。标准的WAI-ARIA角色应该使用role属性,并且其值应该符合WAI-ARIA规范中的定义,例如button、alert、dialog等。
Copyright © 2025 IZhiDa.com All Rights Reserved.
知答 版权所有 粤ICP备2023042255号