Form Markup Example

Fundamental 266 views
0 Flares 0 Flares ×

I still stumble sometimes when making forms from scratch since I use Wufoo too much I guess. Anyway I thought it might be useful to host an example form here for those having possibly the same issues.

<form id="myForm" action="#" method="post">

    <label for="name">Text Input:</label>
    <input type="text" name="name" id="name" value="" tabindex="1">

     <h4>Radio Button Choice</h4>

     <label for="radio-choice-1">Choice 1</label>
     <input type="radio" name="radio-choice-1" id="radio-choice-1" tabindex="2" value="choice-1">
    <input type="radio" name="radio-choice-2" id="radio-choice-2" tabindex="3" value="choice-2">

    <label for="select-choice">Select Dropdown Choice:</label>
    <select name="select-choice" id="select-choice">
      <option value="Choice 1">Choice 1</option>
      <option value="Choice 2">Choice 2</option>
      <option value="Choice 3">Choice 3</option>
    <label for="textarea">Textarea:</label>
    <textarea cols="40" rows="8" name="textarea" id="textarea"></textarea>
    <label for="checkbox">Checkbox:</label>
    <input type="checkbox" name="checkbox">

    <input type="submit" value="Submit">



For Reference:

Example Form Markup

Provided by: Chris Coyier
Tagged with:
Posted in HTML


Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

No Trackbacks.


Register | Lost your password?
0 Flares Twitter 0 Facebook 0 Google+ 0 0 Flares ×