XHTML and CSS Tutorial - 41 - Check Boxes & Radio Buttons

!DOCTYPE html PUBLIC” -//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml/DTD/xhtmll-transitional.dtd>

<html>




<head>

<style type ="text/css">


</style>



</head>



<body>
<form>
Username: <input type ="text" name="username" value="Enter Your Name Here":/>
<br/>
Male: <input type = "radio" name ="sex" value="male">
Female: <input type = "radio" name ="sex" value="female">
</form>

</body>




</html>


<!DOCTYPE html PUBLIC” -//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml/DTD/xhtmll-transitional.dtd>

<html>




<head>

<style type ="text/css">


</style>



</head>



<body>
<form>
Username: <input type ="text" name="username" value="Enter Your Name Here":/>
<br/>
Male: <input type = "radio" name ="sex" value="male">
Female: <input type = "radio" name ="sex" value="female">
<br/>
<p>Select the foods that you would like to order!<p>
Coffee <input type="checkbox" name="food" value="bacon"/>

Tuna <input type="checkbox" name="food" value="bacon"/>

Muffin<input type="checkbox" name="food" value="bacon"/>

Biscuit <input type="checkbox" name="food" value="bacon"/>

</form>

</body>




</html>

Comments