How to create drop down boxes in a form with HTML/XHTML
A drop-down box is a drop-down list that allows users to select one item.
The code below shows you how to create a drop-down boxes in a form with HTML/XHTML.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>Web Development Tutorials.com</title>
</head>
<body>
<form action="formscript.php" method="post">
<select name="tutorials">
<br />
<option value="html">HTML tutorials
</option>
<br />
<option value="css">CSS tutorials
</option>
<br />
<option value="javascript">javascript tutorials
</option>
</select>
</form>
</body>
</html>
The above HTML code makes the form with a drop-down box below.
Use the text editor below to practice what you have learned.