zoukankan      html  css  js  c++  java
  • [ARIA] Group different DOM element in screen reader by using aria-labelledby

    Labeling inputs, elements, and widgets add context and clarity for assistive technology such as screen readers. When there are already one or more other elements that themselves can be used to provide labeling text to another element an aria-labelledby attribute can be added to that element.

    Some examples of appropriate use cases for using an aria-labelledby are:

    • Combine multiple labels together
    • Associate headings with regions
    • Label for a widget
    <div aria-labelledby="noMoviesText addLink">
      <span id="noMoviesText">
        No Movies in your Wish List!
        <Link id="addLink" to="/browse">
          Add some!
        </Link>
      </span>
    </div>
  • 相关阅读:
    Hadoop 集群搭建步骤
    Linux 常见的命令
    Mysql 的事物理解
    数据库的理论知识
    IDEA debug
    junit 测试
    Mysql 索引的知识
    JSON解析
    java 多线程
    Java集合框架关系图
  • 原文地址:https://www.cnblogs.com/Answer1215/p/12617262.html
Copyright © 2011-2022 走看看