HTML Old School

Label

Label element is a container for naming form fields.

<form action="" method="POST" enctype="application/x-www-form-urlencoded">
    
    <label for="1">First name:</label>
    <input type="text" id="1" name="firstname" value="John Dean">
       
    <br>
    <br>
       
    <br>Animals:
   
    <br><label for="2">Dog:</label>
    <input type="checkbox" id="2" name="animal" value="dog">
       
    <br><label for="3">Cat:</label>
    <input type="checkbox" id="3" name="animal" value="cat">

</form>

 

Example: 25label.html