HTML and CSS Reference
In-Depth Information
sessiOn 10.1 visUAL OveRvieW
The
type
attribute
defines the scripting
language used in the
program.
The
script
element is used
to embed program code or
to reference code stored in
an external document.
The
var
keyword is used
to declare a
variable
,
which is a named item in
a program that stores a
value or an object.
The
text
written by the
document.write()
method can include Web
page text or HTML code.
The
document.write()
method is used to
write text strings into
a Web document.