HTML and CSS Reference
In-Depth Information
3.
Put your cursor after the closing </h2> tag that contains the text Contest Entry Form and
press Enter (Return).
4.
Enter the following code:
<form name=”contest” method=”post” action=”“>
<p>
<label for=”fullName”>Name: </label>
<input type=”text” name=”fullName” id=”fullName”>
</p>
<p>
<label for=”email”>Email: </label>
<input type=”text” name=”email” id=”email”>
</p>
<p>
<label for=”entry”>Entry: </label>
<textarea name=”entry” id=”entry” cols=”50” rows=”5”>Why do you want to
visit Saturn? (100 words or less)</textarea>
</p>
</form>
5.
Save your file.
6.
In your browser, open tpa_saturn.html to view the rendered form with the text fields and
textarea as shown in Figure 19-3.
FiGure 19-3
Search WWH ::




Custom Search