为输入控件定义文本标签
- <label></label>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>网页标题</title>
</head>
<body>
<form action="https:www.baidu.com" method="post">
<p>
<label for="username">用户名:</label>
<input type="text" id="username" />
</p>
<p>
<label for="password">密码:</label>
<input type="password" id="password" />
</p>
</form>
</body>
</html>