script

The script element enables dynamic script and data blocks to be included in documents.

Attributes

<script attribute-name="attribute-value"></script>
Name Value Description
async async | empty Specifies that the script should be executed asynchronously, as soon as it becomes available - HTML5
charset character encoding name Character encoding of the external script
defer defer | empty Specifies that script should be executed after the document has been parsed
src URI URL for the audio stream
type MIME type MIME type of the content - HTML5 default is 'text/javascript'

Global

Example | async

Example | charset

Example | defer

Example | src

Example | type

External

W3C HTML 4.01 Specification

W3C HTML5

W3C HTML 5.1