HTML - Tags - <legend>

#75 of 147
Next li
Prev label

     <form action="SubscribeForm.aspx" method="post">
             <label for="id_first">First</label>
             <input type="text" id="id_first" name="form_first">/input>
             <label for="id_last">Last</label>
             <input type="text" id="id_last" name="form_last">/input>
             <legend>Contact info:</legend>
             <label for="id_email">Email</label>
             <input type="email" id="id_email" name="form_email">/input>
         <button type="submit">Subscribe</button>

The legend element creates a title for a group of fields on a form.

A live example:

Contact info:

N of

Ads by Google

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

© Richard McGrath