Web 可访问性 - 配置为读取“标题”时屏幕阅读器的行为 属性
有人建议我,如果“标题”属性扩展了控件可见文本中的内容,则它应该包含可见文本中的所有信息,因为屏幕阅读器可能会读取标题而不是可见文本文本。 为了准确地阐明其工作原理,以下任何一点是否正确(对于必须屏幕阅读器的人)?
- 使用“for”属性与输入字段关联,并且设置了输入字段的标题属性,则屏幕阅读器将仅读取标题属性并忽略标签文本。
如果具有自己文本的控件(例如按钮)同时提供了可见文本和标题属性,则仅读取标题属性。
屏幕阅读器将忽略按钮控件的可见文本,即使开发人员忽略为该特定控件提供标题属性(最极端的可能性)。
I've been advised that if a 'title' attribute expands upon what's present in a control's visible text, it should include all information in the visible text, because the screenreader may read the title instead of the visible text. To clarify exactly how this works, are any of the following points true (for must screenreaders)?
If a label is associated with an input field using the 'for' attribute, and the input field's title attribute is set, then the screenreader will read only the title attribute and ignore the label text.
If a control with its own text, such as a button, is provided with both visible text and a title attribute, then only the title attribute will be read.
The screenreader will ignore visible text for button controls, even if the developer neglected to provide the title attribute for that particular control (the most extreme possibility).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
标签优先于输入标题属性。 如果标签存在,JAWS 会读取它,否则如果标题存在,JAWS 会读取它。
在这种情况下不读取标题属性,读取可见文本
来自 http://www.w3.org/TR/html401 /struct/global.html#adef-title:
我在此代码上使用 JAWS 进行了测试:
我还应该指出 Freedom Scientific 有一个 试用下载 (ftp) 这将使您更深入地了解网页对用户的外观。
The label is preferred to the input title attribute. If the label is present, JAWS reads that, otherwise if the title is present JAWS reads that.
The title attribute is not read in this case, the visible text is read
From http://www.w3.org/TR/html401/struct/global.html#adef-title:
I tested using JAWS on this code:
I should also point out that Freedom Scientific has a trial download (ftp) which will give you a vastly deeper understanding of what web pages look like to users.