HyperText Markup Language/Tag List/script

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

Use[edit | edit source]

This adds a script to a Web Page.

Example[edit | edit source]

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

Required attributes[edit | edit source]

type[edit | edit source]

Identifies a language for a script.

Optional attributes[edit | edit source]

src[edit | edit source]

Specifies the location of a script if it is external.

language[edit | edit source]

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

Standard attributes[edit | edit source]

More info[edit | edit source]

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