Here's the way I usually do it:
HTML Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang='en'>
<head>
<META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=ISO-8859-1'>
<title>Page title</title>
<style type="text/css">
<!--
body {
font: medium arial, helvetica, sans-serif;
margin: 0;
padding: 1em;
}
label {
float: left;
width: 3.5em;
}
form p {
margin: 0.3em auto;
}
-->
</style>
</head>
<body>
<form action="#" method="post">
<p><label for="var1">From:</label><input type="text" name="var1" id="var1"></p>
<p><label for="var2">To:</label><input type="text" name="var2" id="var2"></p>
</form>
</body>
</html>
Bookmarks