Create a form using HTML which has the following types of controls:

Create a form using HTML which has the following types of controls:

1.TextBox

2.Option /Redio button

3.Checkbox

4.Reset and Submit button

<!DOCTYPE html>

<html>

<head>

<title>program</title>

</head>

<body>

<table align="center" border="3" width="1000" height="500">

<tr>

<td>

<h2>SUBSCRIBE TO XYZ NEWS MAGAZINE AND E-MAILS</h2>

<h4><p> Intersted in receiving daily small updates of all latest news?

well, now you can. and best of all , it is FREE!

Just fill out this form and submit it by clicking the "send it in "button.

We will put you on are mailing list and you will receive your first E-mail in 3-5 days.

</p></h4>

<hr>

<p>Please fill in the following boxes to help us send the emails and our newsletters.</p>

<form>

First Name:<input type="text" name="First Name" value="">

<br>

Last Name:<input type="text" name="Last Name" value="">

<br>

Business:<input type="text" name="Business" value="">

<br>

<p> We must have a correct E-mail Address to send you the newsletter</p>

E-mail:<input type="text" value="">

<p>How did you hear about XYZ news magazine and E-mails</p>

<input type="radio" name="optionlist" value="hear on the web" checked>hrar on the web

<input type="radio" name="optionlist" value="magazine">Magazine

<input type="radio" name="optionlist" value="Television">Television

<input type="radio" name="optionlist" value="other">Other

<p>Would you like to be on our regular mailing list</p>

<input type="checkbox" name="" value="yes we like to junk mails" checked>Yes we like to junk mails

<br>

<input type="reset" value="reset">

<input type="button" onclick="alert('submitted!')"  value="send it in">

</form>

</td>

</tr>

<hr>

</table>

</body>

</html>

                


Comments