INSERTING CHECKBOXES AND RADIO BUTTONS

 

What kind of food do you like?

 

GENDER

 

 

 

HTML CODE

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Untitled Document</title>
</head>

<body>
<h1 align="center">INSERTING CHECKBOXES AND RADIO BUTTONS</h1>
<p>&nbsp;</p>

<form id="form1" name="form1" method="post" action="">

<h2>What kind of food do you like?</h2>

<p>
<input type="checkbox" name="pasta" id="pasta">
<label for="pasta">Pasta</label>
</p>


<p>
<input type="checkbox" name="meet" id="meet">
<label for="meet">Meet</label>
</p>


<p>
<input type="checkbox" name="seafood" id="seafood">
<label for="seafood">Sea food</label>
</p>


<p>&nbsp;</p>
<h2>GENDER</h2>

<p>
<input type="radio" name="radio" id="female" value="female">
<label for="female">Female</label>
</p>


<p>
<input type="radio" name="radio" id="male" value="male">
<label for="male">Male</label>
</p>


<p>&nbsp;</p>

<p>
<input type="submit" name="submit" id="submit" value="Submit">
</p>


</form>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2 align="center">HTML CODE</h2>
<p>&nbsp;</p>
</body>
</html>