HTML The Definitive Guide (134 page)

Read HTML The Definitive Guide Online

Authors: Chuck Musciano Bill Kennedy

BOOK: HTML The Definitive Guide
4.45Mb size Format: txt, pdf, ePub

; never omitted

Contains:

scripts

Used in:

head_content, body_content

13.3.1.1 The language and type attributes
Use the language or type attribute in the

tells the is still required.

Used in conjunction with the src attribute, the charset attribute tells the browser the character set used to encode the JavaScript program. Its value is the name of any ISO standard character set encoding.

13.3.1.3 The defer attribute

Some JavaScript scripts are used to create actual document content using the document.write method; others are not. If your scripts do not alter the contents of the document, add the defer attribute to the