HyperText Markup Language/Tag List/script

From Wikibooks, the open-content textbooks collection

Jump to: navigation, search

Contents

[edit] Use

This adds a script to a Web Page.

[edit] Example

<script scr="Calculate.js" type="text/javascript" language="javascript">

[edit] Required attributes

[edit] type

Identifies a language for a script.

[edit] Optional attributes

[edit] src

Specifies the location of a script if it is external.

[edit] language

This tells the browser what language the script has been written in

[edit] Standard attributes

[edit] language

[edit] src

[edit] type

[edit] More info

A link to a page with more info, then the name of the site the info came from (i.e. W3Schools).

In other languages