-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOptgrp.htm
96 lines (95 loc) · 2.09 KB
/
Optgrp.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
<!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> OPTGRP </H1>
<SPAN CLASS="INTRO"> Specifies a description for a group of options </SPAN>
<SPAN CLASS= INTRO> <A HREF="SELECT.HTM" TITLE= "Select-Specify a Selection List"> SELECT </A> </SPAN> Tag.
This is a Container Tag and thus <BR>has to be closed.
<H4> Attributes </H4>
<OL>
<LI CLASS="HAND"> LABEL :
<SPAN CLASS= MAIN> Specifies <SPAN CLASS="INTRO"> Shorter Alternatives text
assigned to this tag. Browsers use this to show
Tool Tips over the Group. </SPAN> </SPAN>
</OL>
<H2> Syntax </H2>
<SPAN CLASS= INTRO> <FORM>
<BR>
<SELECT>
<BR>
</SPAN>
<SPAN CLASS= MAIN>
<OPTGROUP [LABEL="LABEL"]>
</SPAN>
<BR>
<SPAN CLASS= INTRO>
<OPTION>
<BR>
...Text...
<BR>
</OPTION>
<BR>
...
<BR>
</SPAN>
<SPAN CLASS= MAIN>
</OPTGROUP>
</SPAN>
<BR>
<SPAN CLASS= INTRO> </SELECT>
<BR>
</FORM> </SPAN>
<H3> Example </H3>
<SPAN CLASS= INTRO> <FORM>
<BR>
<SELECT> </SPAN>
<BR>
<SPAN CLASS= MAIN>
<OPTGROUP>
</SPAN>
<BR>
<SPAN CLASS= INTRO>
<OPTION>
<BR>
Text1
<BR>
</OPTION>
<BR>
<OPTION>
<BR>
Text2
<BR>
</OPTION>
<BR>
</SPAN>
<SPAN CLASS= MAIN>
</OPTGROUP>
</SPAN>
<BR>
<SPAN CLASS= INTRO> </SELECT>
<BR>
</FORM> </SPAN>
<H5> Effect </H5>
<FORM NAME="SELEF">
Choose Who You are.....
<SELECT NAME="SELE1" READONLY>
<OPTGROUP LABEL="Select Who You Are">
<OPTION VALUE="Teacher"> Teacher </OPTION>
<OPTION VALUE="Student"> Student </OPTION>
</OPTGROUP>
<OPTGROUP LABEL="Select Your Type">
<OPTION VALUE="Senior"> Senior </OPTION>
<OPTION VALUE="Junior"> Junior </OPTION>
</OPTGROUP>
</SELECT>
</FORM>
<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>