HTML - Tags - <fieldset>

#46 of 147

     <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 fieldset element creates a titled border around a collection of related form fields.

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