<!-- how to use label element in form in html --> <form action="/example.html" method="POST"> <h1>Login to to your Account</h1> <label for="username">Username</label> <input type="text" name="username" id="username"> </form>