Documente Academic
Documente Profesional
Documente Cultură
5 FORMS
SIGN UP FORM FOR GMAIL SIGN UP FORM FOR FACEBOOK
FORM FOR PIZZA ORDERING SYSTEM
REGISTRATION FORM FOR
A PARTICULAR APPLICATION
FORMS
A webform, web form or HTML form on a web page allows a user
to enter data that is sent to a server for processing.
Forms are enclosed in the HTML <form> tag.
Forms are made up of standard graphical user
interface(GUI) elements called HTML controls.
The data entered into the form should be submitted to the server
using two methods:
(i) GET
(ii) POST.
The basic purpose of an HTML form is to allow the user to enter
data on one end and then send the data on the other end through the
web server.
It helps the user purchase goods on the Internet and signup for
newsletters and mail accounts.
<input>
Meaning:
Output:
Example 1:
<input type=“password”>
Meaning:
Output:
Example 1:
<input type=“hidden”>
Meaning:
Output:
Example 1:
<input type=“file”>
Meaning:
Output:
Example 1:
<input type=“image”>
Meaning:
Output:
(ii) Checkbox:
<form>
In which game are you interested?<br>
<input type="checkbox">Football<br>
<input type="checkbox">Volley ball<br>
<input type="checkbox">Cricket<br>
<input type="checkbox">Tennis<br>
</form>
Example 2:
<form>
In which game are you interested?<br>
<input type="checkbox” checked>Football<br>
<input type="checkbox” checked>Volley ball<br>
<input type="checkbox” checked>Cricket<br>
<input type="checkbox” checked>Tennis<br>
</form>
Example:
<html>
<form>
</form>
</html>
(iii) Radio Button:
A radio button allows the user to select only one option from
limited no. of choices.
Example 1:
<form>
Gender:
<input type=“radio” >Male
</form>
Example 2:
<form>
Gender:
<input type=“radio” name=“g” >Male
</form>
**** The difference between checkbox and radio buttons are:
<form>
Select country
<select>
<option> Afghanistan </option>
<option> China </option>
<option> Denmark </option>
<option> India </option>
<option> Iceland </option>
<option> Ireland </option>
<option> Japan </option>
<option> Russia </option>
<option> USA </option>
</select>
</form>
</html>
Example 2:
<html>
<form>
Select country
<select>
<option> Afghanistan </option>
<option> China </option>
<option> Denmark </option>
<option> India </option>
<option> Iceland </option>
<option> Ireland </option>
<option> Japan </option>
<option> Russia </option>
<option selected> USA</option>
</select>
</form>
</html>
Example 3:
DATE OF BIRTH:<select>
<option>DATE<option>1<option>2<option>3<option>4<option>5<option>6
<option>7<option>8<option>9<option>10<option>11<option>12<option>13
<option>14<option>15<option>16<option>17<option>18<option>19<option>20
<option>21<option>22<option>23<option>24<option>25<option>26<option>27
<option>28<option>29<option>30<option>31
</select><select>
<option>MONTH
<option>January<option>February<option>March<option>April<option>May
<option>June<option>July<option>August<option>September<option>October
<option>November <option>December
</select>
<select>
<option>YEAR
<option>1980<option>1981<option>1982<option>1983<option>1984<option>1985
<option>1986<option>1987<option>1988<option>1989<option>1990<option>1991
<option>1992<option>1993<option>1994<option>1995<option>1996<option>1997
<option>1998<option>1999<option>2000<option>2001<option>2002<option>2003
<option>2004<option>2005<option>2006<option>2007<option>2008<option>2009
<option>2010<option>2011<option>2012<option>2013<option>2014<option>2015
<option>2016<option>2017<option>2018<option>2019<option>2020
</select>
(vi) Button or Simple Button or Clickable Button:
<form>
<center>
</center>
</form>
(vii) Submit Button:
</center>
</form>
(viii) Reset Button:
When the user clicks the reset button, all the values in the form
fields are cleared and controls in the form are returned to their
original state.
Example 1:
<form>
<center>
</center>
</form>
Example 2:
<form>
<center>
</center>
</form>