HTML and CSS Reference
In-Depth Information
9.3. A Simple Form Example
In a moment, we'll examine each of the many form controls in detail.
Let's first take a quick look at a simple example, to see how forms are
put together. This HTML form (shown in Figure 9-1 ) gathers basic demo-
graphic information about a user:
Figure 9-1. A simple form
<form method=POST action="">
<input type=text name=name size=32 maxlength=80>
<input type=radio name=sex value="M"> Male
<input type=radio name=sex value="F"> Female
Annual Income:
<select name=income size=1>
<option>Under $25,000
Search WWH ::

Custom Search