HTML - Tags - <label>

#74 of 147
label

 <html>
 <body>
     <form action="SubscribeForm.aspx" method="post">
         <label for="id_email" accesskey="m">Email</label>
         <input type="email" id="id_email" name="form_email">/input>
         <button type="submit">Subscribe</button>
     </form>
 </body>
 </html>
 

The label element creates a text label for a form field.

A live example:



N of

Ads by Google


Ask a question, send a comment, or report a problem - click here to contact me.

© Richard McGrath