【问题标题】:What is the use of "for" atribute of HTML5? [duplicate]HTML5的“for”属性有什么用? [复制]
【发布时间】:2017-04-22 09:31:40
【问题描述】:

我目前正在学习 HTML,但难以理解 <label>for 属性。

谁能举例说明一下?

【问题讨论】:

  • 就像旁注一样...不是HTML5标签。

标签: html


【解决方案1】:

用于输入,将<input for="myId">绑定到<span id="myId">

另请参阅:
This AnswerMDN Documentation

【讨论】:

    猜你喜欢
    • 2021-06-07
    • 2011-08-31
    • 1970-01-01
    • 2018-04-28
    • 1970-01-01
    • 2012-12-22
    • 1970-01-01
    • 1970-01-01
    • 2012-07-30
    相关资源
    最近更新 更多