for attribute in label html code example Example: label for attribute <label for="username">Click me</label> <input type="text" id="username">