HTML and CSS Reference
In-Depth Information
<title>Fill in the Missing Code</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<h1>Vote for your favorite Search Engine</h1>
<form method= "_" action= "_" >
<input type="radio" name= "_" id="Ysurvey" value="Yahoo" />
Yahoo!<br />
<input type="radio" name="survey" id="Gsurvey" value="Google" />
Google<br />
<input type="radio" name= "_" id="Asurvey" value="AltaVista" />
Alta Vista<br />
<_>
</form>
</body>
</html>
3. Find the Error. Find the coding errors in the following subscription form:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Find the Error</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8” />
</head>
<body>
<p>Subscribe to our monthly newsletter and receive free
coupons!</p>
<form action="get" method="newsletter.php">
E-mail: <input type="textbox" name="email" id="email" char="40">
<br />
<input type="button" /> <input type="reset" />
</form>
</body>
</html>
Hands-On Exercises
1. Write the XHTML to create a text box named username that will be used to accept
the user name of Web page visitors. The text box should allow a maximum of 30
characters to be entered.
2. Write the XHTML to create a group of radio buttons that Web site visitors can
check to vote for their favorite day of the week.
3. Write the XHTML to create a select list that asks Web site visitors to select their
favorite social networking Web site.
4. Write the XHTML to create a fieldset and legend with the text “Shipping Address”
around the following form controls: AddressLine1, AddressLine2, City, State, ZIP.
 
Search WWH ::




Custom Search