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