<!DOCTYPE html>
<html>
<head>
	<title>Full HTML entry from</title>
    <link rel="stylesheet" type="text/css" href="form.css">
</head>

<body bgcolor="lightyellow">
<h1><center>The Ice Cream Shop</center></h1>
<h3>With HTML "required" attribute</h3>

<form name="form1" method="POST" action="form2.cgi">

<fieldset>
<legend>Enter Fields Below</legend>

<table>
<tr>
	<td><b>Enter First Name
	<td><input type="text" name="firstname" required >
<tr>
	<td><b>Last Name
	<td><input type="text" name="lastname"  required>
<tr>
	<td><b>Enter Address
	<td><textarea name="address" required></textarea>
<tr>
	<td><b>Choose a Brand
	<td><select name="brand" required>
    		<option value=''>- choose from below -</option>
    		<option>Basking-Robbins</option>
    		<option>Ben & Jerry's</option>
    		<option>Carvel</option>
    		<option>Cold Stone</option>
    		<option>Haagen-Dazs</option>
    		<option>Hershey's</option>
	</select>
<tr>
	<td><b>Ice Cream Flavor
	<td><select name="flavor" multiple required>
    		<option>Vanilla</option>
    		<option>Chocolate</option>
    		<option>Strawberry</option>
    		<option>Butter Pecan</option>
    		<option>Rocky Road</option>
    		<option>French Vanilla</option>
    		<option>Pistachio</option>
	</select>
<tr>
	<td><b>Select Topping
	<td>
	<input type="checkbox" name="topping1" value="hotFudge" />     Hot Fudge
	<input type="checkbox" name="topping2" value="sprinkles" />    Sprinkles
	<input type="checkbox" name="topping3" value="nuts" />         Nuts
	<input type="checkbox" name="topping4" value="whippedCream" /> Whipped Cream
<tr>
	<td><b>Credit Card
	<td>
	<input type="radio" name="creditCard" value="MC"   required > Master Card
	<input type="radio" name="creditCard" value="VISA" required > Visa
	<input type="radio" name="creditCard" value="AMEX" required > American Express
	<input type="radio" name="creditCard" value="DISC" required > Discover
<tr>
	<td colspan=2>
	<input type="submit" value="Place Order"  />
	<input type="reset"  value="Cancel"       />
</table>
</fieldset>
</form>

</body>
</html>