- You are missing ending paragraph tags
- your tags should be lowercase
- I think that Uppercase is normal for straight HTML, but I suggest using something other than straight HTML. I suggest XHTML or HTML5, and in that case everything should be lowercase.
- be careful with your indentation.
- When you go looking through code you want to be able to find things right away and know when one tag ends and another one starts.
With that it should look like this
<html>
<body>
<form>
<h1>RESERVATION FORM</h1>
<p>NAME<input type="TEXT" size="20" maxlength="99" /></p>
<p>AGE<input type="TEXT" size="12" maxlength="99" /></p>
<p>ADDRESS<input type="TEXT" size="42" maxlength="99" /></p>
<p>EMAIL<input type="TEXT" size="30" maxlength="99" /></p>
<p>TELEPHONE<input type="TEXT" size="10" maxlength="99" /></p>
<p>SELECT YOUR BERTH </p>
<select name="CHOICES" size="3">
<option>TATKAL</option>
<option>LADIES</option>
<option>GENRAL</option>
</select>
<p>CITY</p>
<select name="CITY">
<option selected="selected">DELHI</option>
<option>MUMBAI</option>
<option>KOLKATA</option>
<option>CHENNAI</option>
<br/><br/>
<input type="submit" value="click here to submit" />
<input type="reset" value="clear this form" />
</form>
</body>
</html>
I don't like your input
tags being nested inside of your paragraph tags either. You should replace this with label tags like this:
<label text="Name" />
<input type="text" size="20" maxlength="99" />
<label text="age" />
<input type="text" size="12" maxlength="99" />
<label text="Address" />
<input type="text" size="42" maxlength="99" />
<label text="Email" />
<input type="text" size="30" maxlength="99" />
<label text="Telephone" />
<input type="text" size="10" maxlength="99" />
<label text="Select Your Birth" />
....
This is the perfect reason to use a label tag instead of a paragraph tag. you may want to use some <br/>
in there too, but that depends on what you are going to do CSS wise, if you are going to use CSS that is.
If you are going really old school you are going to want to set up some tables, but that wouldn't be good, so use CSS.
With the CSS you might want to Add some ID's or classes for the input tags and maybe the label tags as well, so that you can add styling to them. It would also be difficult to use some sort of code behind with this HTML unless you have some ID's associated with the controls that you want to change dynamically.
UPDATE
I added the form tags to this answer after I saw @200_Success's answer. I can't believe I missed the missing tags.
After all that, there are still many attributes missing in the other tags, and more things missing to make this fun registration form from working.
I changed my option
tags so that they validate, I don't know what I was thinking. Maybe I was still in C# mode thinking or something.
<form>
element in the page. \$\endgroup\$