Html 有人可以解释 HTML5 aria-* 属性吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4176844/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 05:16:26  来源:igfitidea点击:

Can someone explain the HTML5 aria-* attribute?

htmlaccessibilitywai-aria

提问by soflow

I wanted to know what the aria-*attributes are used for. What values can they have, and are they defined values or can I create my own values?

我想知道这些aria-*属性是做什么用的。他们可以拥有什么价值观,它们是定义的价值观还是我可以创建自己的价值观?

回答by gkrogers

ARIA stands for Accessible Rich Internet Applicationsand is designed to improve the accessibility of Rich Internet Applications, i.e. to make them more usable for people with disabilities.

ARIA 代表可访问的富 Internet 应用程序,旨在提高富 Internet 应用程序的可访问性,即使它们更适合残障人士使用。

Help on the various attributes is available here.

此处提供有关各种属性的帮助。

I don't think you can create your own ARIA attributes.

我认为您无法创建自己的 ARIA 属性。