XHTML Scripts


Scripts make it possible to process data and perform other dynamic events. Scripts are included in web pages thanks to the <script> element, which also identifies the specific scripting language being used (JavaScript, VBScript, and so on.).

<noscript></noscript>

Usage

Provides alternative content for browsers unable to execute a script.

Start/End Tag

Required/Required.

Attributes

core, i18n, events.

Empty

No.


<script></script>

Usage

The <script> element contains client-side scripts that are executed by the browser.

Start/End Tag

Required/Required.

Attributes

type="scripttype" Script language Internet content type.

src="scripturl" The URL for the external script.

defer="defer" Indicates that the script doesn't alter document content.

Empty

No.

Notes

You can set the default scripting language in the <meta /> element.





SAMS Teach Yourself HTML and CSS in 24 Hours
Sams Teach Yourself HTML and CSS in 24 Hours (7th Edition)
ISBN: 0672328410
EAN: 2147483647
Year: 2005
Pages: 345

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net