【发布时间】:2020-10-07 23:46:30
【问题描述】:
在以下简单的 html 代码中,当屏幕阅读器(NVDA,Mac 上的 VoiceOver)打开时。
当我进入输入框时,它会宣布This is the test label(在网页上可见)
我想让屏幕阅读器宣布一些额外的内容,例如 if you type something, more fields will appear。 (隐藏在网页上)
想知道如何实现它?
<html>
<head>
test
</head>
<body>
<label class="large-label" for="your-name">
This is the test label
</label>
<input id="your-name" name="your-name" type="text" />
</body>
</html>
【问题讨论】:
标签: html accessibility screen-readers nvda