最佳答案
许多 ARIA 示范网站使用以下代码:
<label for="name" id="label-name">Your Name</label>
<input id="name" aria-labelledby="label-name" type="text">
但是在这种情况下使用 aria-labelledby属性的目的是什么呢?input元素已经被使用 for属性的 label元素标记了,不是吗?