0% found this document useful (0 votes)
18 views

HTML Form

Uploaded by

Mesele Berhanu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

HTML Form

Uploaded by

Mesele Berhanu
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

HTML FORM

<!DOCTYPE html>

<html>

<head><title>Form elements</title>

<body>

<form action="" method="get">

<fieldset>

<legend>HTML Form elements</legend>

First Name:<input type="text" name="name" required></br>

Last Name:<input type="text" name="name"></br>

Password: <input type="password" name="pwd"></br>

<br>

Select what you want:</br>

<select name="seltest" title="numbers">

<optgroup label="single digit">

<option>one</option>

<option selected="selected">two</option>

<option>three</option>

</optgroup>

<optgroup label="double digit">

<option>ten</option>

<option>eleven</option>

<option>twelve</option>

</optgroup>
</select>

</br>

Choose One:</br>

<input type="radio" name="radiobutton">1st year </br>

<input type="radio" name="radiobutton">2nd year </br>

<input type="radio" name="radiobutton">3rd year </br>

<input type="radio" name="radiobutton">4th year </br>

You can also Choose more than subjects:</br>

<input type="checkbox" name="radiobutton">C++ </br>

<input type="checkbox" name="radiobutton">Java </br>

<input type="checkbox" name="radiobutton">IP </br>

<input type="checkbox" name="radiobutton">VB </br>

Please Give us your feedback:</br>

<textarea name="feedback" rows="10" cols="30" >

Type here your feedback

</textarea></br>

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

<input type="file" size="50"/></br>

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

</fieldset>

</form>

</body>

</html>

You might also like