-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathScript.htm
79 lines (78 loc) · 2.7 KB
/
Script.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
<!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> SCRIPT </H1>
This is to be used in the <SPAN CLASS= INTRO> <A HREF="# HEAD" TITLE= "Head-To define the Control Info for the Document"> HEAD </A> </SPAN> Tag.
This contains the <SPAN CLASS= INTRO> Browser Script Code </SPAN>. The popular ones <BR>are
<SPAN CLASS= INTRO> JAVASCRIPT and VBSCRIPT </SPAN>. It is good habit to include the actual
Script Code in the <BR><SPAN CLASS= INTRO> <A HREF="# COMM" TITLE= "<!--...-->-Text will not be Displayed. Comment Tag"> !--...-- </A> </SPAN>Tags so that
the browsers that don't Scripts can ignore it. This is a Container Tag and has to be Closed.
<H4> Attributes </H4>
<OL>
<LI CLASS="HAND"> DEFER :
<SPAN CLASS= MAIN> Indicates browser that the Script <SPAN CLASS= INTRO>
doesn't affect the initial document display, so that the Script can be
processed after the page loads. </SPAN> </SPAN>
<LI CLASS="HAND"> LANGUAGE :
<SPAN CLASS= MAIN> Indicates the <SPAN CLASS= INTRO> MIME Type of the Script.
</SPAN> </SPAN>
<LI CLASS="HAND"> SRC :
<SPAN CLASS= MAIN> Specifies the <SPAN CLASS= INTRO> Relative or Absolute URL of
the Script to be included in the document</SPAN>. </SPAN>
<LI CLASS="HAND"> TYPE :
<SPAN CLASS= MAIN> Indicates the <SPAN CLASS= INTRO> MIME Type of the Script.
This is used as an alternate for the LANGUAGE Attribute. </SPAN> </SPAN>
</OL>
<H2> Syntax </H2>
<SPAN CLASS= INTRO> <HEAD> </SPAN>
<BR>
<SPAN CLASS= MAIN> <SCRIPT [DEFER][LANGUAGE="LANGUAGE"][SRC="URL"][TYPE="TYPE"]></SPAN>
<SPAN CLASS= INTRO>
<BR>
<!--
<BR>
....Script....
<BR>
//-->
<BR>
</SPAN>
<SPAN CLASS= MAIN> </SCRIPT></SPAN>
<BR>
<SPAN CLASS= INTRO> </HEAD> </SPAN>
<H3> Example </H3>
<SPAN CLASS= INTRO> <HEAD> </SPAN>
<BR>
<SPAN CLASS= MAIN> <SCRIPT LANGUAGE="JAVASCRIPT" SRC="JAVA.JS"></SPAN>
<SPAN CLASS= INTRO>
<BR>
<!--
<BR>
function() <name>
{
<BR>
....
<BR>
}
<BR>
//-->
<BR>
</SPAN>
<SPAN CLASS= MAIN> </SCRIPT></SPAN>
<BR>
<SPAN CLASS= INTRO> </HEAD> </SPAN>
<H5> Effect </H5>
<SPAN CLASS= MAIN> The Effect can't be shown on the Document. But the Script will be
included in the document.</SPAN>
<BR>
<SPAN CLASS= INTRO><A HREF="COMMENT.HTM" TITLE= "<!--...-->-Text will not be Displayed. Comment Tag"> Refer to the !--...-- Tag.</A></SPAN>
<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>