HTML
HTML <label> 元素
使用 “for” 属性
源代码:
点击运行 »
<label for="username">点我</label> <input type="text" id="username">
x
1
<
label
for
=
"username"
>
点我
</
label
>
2
<
input
type
=
"text"
id
=
"username"
>
3
运行结果:
点击运行 »