Slip 17 - B) Design an HTML form for customer registration visiting a departmental store. Form should consists of fields such as name, contact no, gender, preferred days of purchasing, favorite item(to be selected from a list of items),suggestions etc.. You should provide button to submit as well as reset the form contents.

Solution:

<html>
<body>
<form>
<h1>Customer Registration</h1>
<table border=1>
<tr>
<td>Name </td>
31
<td><input type="text" size="20">
</tr>
<tr>
<td>Contact no </td>
<td><input type="text" size="20">
</tr>
<tr>
<td>Gender</td>
<td><input type="radio" size="20">male <input type="radio" size="20">female</td> </tr>
<tr>
<td>days of purchasing</td>
<td><input type="text" size="20">
</tr>
<tr>
<td>favorite item</td>
<td><select name="example">
<option value="item1">Item 1
<option value="item2">Item 2
<option value="item3">Item 3
</select>
</tr>
<tr>
<td>Suggestion</td>
<td><textarea rows="4" cols="50"></textarea
</tr>
<tr>
<td><input type="reset" value="Reset"></td>
<td><input type="submit" value="Submit"></td>
</tr>
</table>
</form>
</body>
</html>

Post a Comment

0 Comments