-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathForm.htm
105 lines (104 loc) · 4.13 KB
/
Form.htm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE HTML 4.0 TRANSITIONAL PUBLIC "_//w3c//dtd html 4.0//en">
<HTML>
<HEAD>
<LINK REL=STYLESHEET TYPE="TEXT/CSS" HREF="STYLES.CSS">
<TITLE> HTML Tutorial </TITLE>
</HEAD>
<body class="MIC">
<H1> FORM </H1>
This is to be used in the <SPAN CLASS= INTRO> <A HREF="BODY.HTM" TITLE= "Body-Contains the Formatting Tags. Its contents are displayed on the Browser"> BODY </A> </SPAN> Tag.
This Tag <SPAN CLASS= INTRO> sets up a Container for a Form. </SPAN>
This Tag includes many Tags such as
<SPAN CLASS= INTRO> <A HREF="BUTTON.HTM" TITLE= "Button-Creates a Button"> BUTTON </A> </SPAN>,
<SPAN CLASS= INTRO> <A HREF="INPUT.HTM" TITLE= "Input-Identifies several Input Methods for Forms"> INPUT </A> </SPAN>,
<SPAN CLASS= INTRO> <A HREF="SELECT.HTM" TITLE= "Select-Specify a Selection List"> SELECT </A> </SPAN>,
<SPAN CLASS= INTRO> <A HREF="TEXTAREA.HTM" TITLE= "Textarea-Defines a Multiple Line Text Input Field in a Form"> TEXTAREA </A> </SPAN>, etc.
<BR>This is a Container Tag and thus needs to be closed.
<H4> Attributes </H4>
<OL>
<LI CLASS="HAND"> ACCEPT-CHARSET :
<SPAN CLASS= MAIN> Specifies the <SPAN CLASS= INTRO> Character encoding for the Input
Data </SPAN> that the Form Processor may Accept. </SPAN>
<LI CLASS="HAND"> ACCEPT :
<SPAN CLASS= MAIN> Specifies a list of <SPAN CLASS= INTRO> MIME Types separated by Commas
</SPAN> that the Form Processor will Handle carefully. </SPAN>
<LI CLASS="HAND"> ACTION :
<SPAN CLASS= MAIN> Specifies <SPAN CLASS= INTRO> the Absolute or Relative Loaction
</SPAN> of the Form Processing Application. </SPAN>
<LI CLASS="HAND"> ENCTYPE :
<SPAN CLASS= MAIN> Specifies the <SPAN CLASS= INTRO> MIME Type used to Submit (POST)
</SPAN> the Form to the Server. Default is <SPAN CLASS= INTRO>
application/x-www-form-urlencoded. </SPAN> Use <SPAN CLASS= INTRO>
multipart/form-data </SPAN> when the returned Document contains Files. </SPAN>
<LI CLASS="HAND"> METHOD :
<SPAN CLASS= MAIN> Specifies how <SPAN CLASS= INTRO> the Form Data is to be Transmitted
</SPAN> to the Form Processor. </SPAN>
<OL>
<LI CLASS="DOC"> GET :
<SPAN CLASS= MAIN> The Form Data is given to the Form Processor in the form of an
<SPAN CLASS= INTRO> Environment Variable. </SPAN>
</SPAN>
<LI CLASS="DOC"> POST :
<SPAN CLASS= MAIN> The Form Data is given to the Form Processor in the form of a
<SPAN CLASS= INTRO> Standard Input to a Program. </SPAN>
</SPAN>
</OL>
<LI CLASS="HAND"> NAME :
<SPAN CLASS= MAIN> Gives a Name to the value you pass to the Form
Processor.</SPAN>
<LI CLASS="HAND"> TARGET :
<SPAN CLASS= MAIN> Identifies in which previously Named Frame the <SPAN CLASS= INTRO>
Output from the Form Processor should Appear </SPAN>. </SPAN>
</OL>
<H2> Syntax </H2>
<SPAN CLASS= MAIN> <FORM [ACCEPT-CHARSET="ACCEPT-CHARSET"] [ACCEPT="ACCEPT"]
[ACTION="URL"] [ENCTYPE="ENCTYPE"] [METHOD="{GET,POST}"] [NAME="NAME"]
[TARGET="TARGET"]> </SPAN>
<BR>
...Form Elements...
<BR>
<SPAN CLASS= MAIN> </FORM> </SPAN>
<H3> Example </H3>
<SPAN CLASS= MAIN> <FORM NAME="FEG1" > </SPAN>
<BR>
<SPAN CLASS= INTRO> Name : <BR> <INPUT TYPE="TEXT" SIZE="25">
<BR>
Address : <BR> <TEXTAREA NAME="FEGTAR" COLS="20" ROWS="5">
<BR>
<IMG SRC="IMAGES\SPACER.BMP" WIDTH="50" HEIGHT="15">
</TEXTAREA>
<BR>
<BUTTON TYPE="SUBMIT" NAME="BUTTON1" VALUE=
<IMG SRC="IMAGES\SPACER.BMP" WIDTH="50" HEIGHT="15">
"SUBMIT">
Submit
</BUTTON>
<BR>
<BUTTON TYPE="RESET" NAME="BUTTON1" VALUE=
<IMG SRC="IMAGES\SPACER.BMP" WIDTH="50" HEIGHT="15">
"RESET">
Reset
</BUTTON>
</SPAN>
<BR>
<SPAN CLASS= MAIN> </FORM> </SPAN>
<H5> Effect </H5>
<FORM NAME="FEG1">
Name : <INPUT TYPE="TEXT" SIZE="25">
<BR>
Address : <TEXTAREA NAME="FEGTAR" COLS="20" ROWS="5"></TEXTAREA>
<BR>
<BUTTON TYPE="TEMP" NAME="BUTTON1" VALUE="SUBMIT">
Submit
</BUTTON>
<BUTTON TYPE="RESET" NAME="BUTTON1" VALUE="RESET">
Reset
</BUTTON>
</FORM>
<BR>
<BR>
<A HREF=" INTRO.HTM" TITLE="HTML Tutorial Home-Introduction to HTML"> Home </A>
<BR>
<A HREF=" ABOUT.HTM" TITLE="About HTML Tutorial"> About </A>
</BODY>
</HTML>