国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

html5 - bootstrap 的表單本身就是 <form> 標(biāo)簽了,為什么還要加 role="form"
ringa_lee
ringa_lee 2017-04-17 11:12:27
0
2
469

如題。form 本身就能說明這是個表單了,那么 role="form" 加了有什么作用呢?

ringa_lee
ringa_lee

ringa_lee

reply all(2)
Ty80

The role attribute is used by screen reading software

You can learn about ARIA, and then you will understand what these roles are used for

劉奇

The attribute role exists to tell Accessibility applications (such as screen reading programs, convenient programs for blind people to access the Internet) that this is a button. In the HTML5 element, the tag itself has semantics, so there is no need to add role, at least it is not recommended. However, many bootstrap cases have similar attributes and declarations in order to be compatible with older versions of browsers. (User Agent), if your code uses html5 tags and is not prepared to support older versions of browsers, you might as well not use the role tag.

https://segmentfault.com/a/11...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template