xxxxxxxxxx
<!-- First Way -->
<label for="username">Username</label>
<!-- You can now assign id="username" so when you click on label element, it will go to the element. -->
<input type="text" id="username" />
<!-- Second Way -->
<label>
Password
<input type="text" />
</label>
xxxxxxxxxx
<label for="id_of_what_you're_labeling"></label>
<!-- for example-->
<label for="username"></label>
<input type="text" id="username">
xxxxxxxxxx
<label for="username">Click me</label>
<input type="text" id="username">
xxxxxxxxxx
<label for="name">姓名:</label>
<input id="name" type="text">