Thanks to visit codestin.com
Credit goes to www.scribd.com

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

!doctype HTML

Uploaded by

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

!doctype HTML

Uploaded by

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

<!

DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Sample Form</title>
</head>
<body>

<h2>Sample Form</h2>

<form action="#" method="post">

<!-- Radio Buttons -->


<fieldset>
<legend>Choose your favorite color:</legend>
<label>
<input type="radio" name="color" value="Red"> Red
</label><br>
<label>
<input type="radio" name="color" value="Green"> Green
</label><br>
<label>
<input type="radio" name="color" value="Blue"> Blue
</label>
</fieldset><br>

<!-- Checkbox -->


<fieldset>
<legend>Choose your interests:</legend>
<label>
<input type="checkbox" name="interest" value="Sports"> Sports
</label><br>
<label>
<input type="checkbox" name="interest" value="Music"> Music
</label><br>
<label>
<input type="checkbox" name="interest" value="Reading"> Reading
</label><br>
</fieldset><br>

<!-- Textbox -->


<label for="name">Enter your name:</label><br>
<input type="text" id="name" name="name" placeholder="Your name"><br><br>

<!-- Submit and Reset buttons -->


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

</form>

</body>
</html>

You might also like