You are on page 1of 1

HTML forms are a way of gathering data from visitors to your page.

Forms typically have text boxes for data


input, radio buttons, drop down boxes, and buttons so that users can submit the form. A reset button is also handy,
just in case mistakes are made filling out the form.
The Form Tag
<FORM>
</FORM>

INPUT TYPE
TEXTBOXES
First Name: <input type="text" name="FirstName" value="" size="15"
maxlength="15" />
TEXT AREAS
<textarea cols="40" name="comments" rows="6">please enter your comments...
</textarea>
PASSWORD ENTRY
Password:<input type="password" value="" name="mypassword" maxlength="10"
size="10" />
RADIO BUTONS
<input type="radio" name="title" value="mr" />Mr.<br />
<input type="radio" name="title" value="ms" />Ms.<br />
<input type="radio" name="title" value="decline" checked="checked"
/>decline<br />
CHECKBOXES
<input type="checkbox" name="checkbox1" />Mail me more info<br />
<input type="checkbox" name="checkbox2" checked="checked" />E-Mail me more
info<br />
SELECT LIST
<select name="countries">
<option>Argentina</option>
<option>Albania</option>
<option>Afganistain</option>
<option selected="selected">Aruba</option>
</select>
SCROLLING LIST
<select name="countries2" size="4">
<option value="0" selected="selected">Argentina</option>
<option value="1">Albania</option>
<option value="2">Afganistain</option>
<option value="3">Aruba</option>
<option value="4">Arabia</option>
</select>
ACTION BUTTONS
<input type="reset" name="submitbutton" value="cancel" />
<input type="submit" name="submitbutton" value="submit" />

You might also like