0% found this document useful (0 votes)
4 views1 page

Sample HTML Form Example

The document is an HTML file containing a sample form for user input. It includes fields for user ID, password, checkboxes for contact preferences, and radio buttons for preferred contact methods. Upon submission, the form data is sent to 'test.html'.

Uploaded by

8d66n6x2q7
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Sample HTML Form Example

The document is an HTML file containing a sample form for user input. It includes fields for user ID, password, checkboxes for contact preferences, and radio buttons for preferred contact methods. Upon submission, the form data is sent to 'test.html'.

Uploaded by

8d66n6x2q7
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

<!

DOCTYPE html>
<html>
<head>
<title>Assignment2</title>
</head>
<body>

<h3>A Sample HTML Form</h3>

<form action="[Link]" method="post">


<label>User Id:</label><br>
<input type="text" name="userid" value="[Link]"><br><br>

<label>Password:</label><br>
<input type="password" name="password" value="12345"><br><br>

<input type="checkbox"> Add me to your contact list.<br>


<input type="checkbox"> Add me to your mailing list.<br><br>

<label>Contact me by:</label><br>
<input type="radio" name="contact" value="Email"> Email
<input type="radio" name="contact" value="Postal"> Postal mail
<input type="radio" name="contact" value="Both"> Both<br><br>

<input type="submit" value="Submit">


<input type="reset" value="Reset">
</form>

<p>By clicking on the "Submit" button, the form data will be sent to a page named "[Link]".</p>

</body>
</html>

You might also like