HyperText Markup Language/Tag List/script

From Wikibooks, open books for an open world
Jump to: navigation, search

Use[edit]

This adds a script to a Web Page.

Example[edit]

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

Required attributes[edit]

type[edit]

Identifies a language for a script.

Optional attributes[edit]

src[edit]

Specifies the location of a script if it is external.

language[edit]

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

Standard attributes[edit]

More info[edit]

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