HTML'hidden'和'aria-hidden'属性之间有什么区别? [英] What's the difference between HTML 'hidden' and 'aria-hidden' attributes?
问题描述
在使用Angular Material时,我一直都在看到咏叹调属性。有人可以向我解释,咏叹调的前缀是什么意思?但最重要的是我想了解的是 aria-hidden
和隐藏
属性之间的区别。
> 解析方案
ARIA(Accessible Rich Internet Applications)定义了一种让残障人士更容易访问Web内容和Web应用程序的方法。
$ b $ <
aria-hidden
属性告诉屏幕阅读器是否应该忽略该元素。有关更多详细信息,请参阅w3文档: https://www.w3.org/WAI/PF/aria/states_and_properties#aria-hidden
使用这些标准可以使残疾人更容易使用网络。
I have been seeing the aria attribute all over while working with Angular Material. Can someone explain to me, what the aria prefix means? but most importantly what I'm trying to understand is the difference between aria-hidden
and hidden
attribute.
ARIA (Accessible Rich Internet Applications) defines a way to make Web content and Web applications more accessible to people with disabilities.
The hidden
attribute is new in HTML5 and tells browsers not to display the element. The aria-hidden
property tells screen-readers if they should ignore the element. Have a look at the w3 docs for more details:
https://www.w3.org/WAI/PF/aria/states_and_properties#aria-hidden
Using these standards can make it easier for disabled people to use the web.
这篇关于HTML'hidden'和'aria-hidden'属性之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!