<script>

Description

Specify a script to be loaded during document rendering.

HTML

For HTML target translation or direct browser loading, the <script> element may be used to specify an HTML <script> header entry. During HTML target translation or direct browser loading, the element is copied verbatim into the document's header.

Attributes

See the HTML specification for information on the possible attributes of the HTML target <script> element.

Immediate descendants

See the HTML specification for information on the possible descendant elements of the HTML target <script> element.

Immediate ancestors

Element name Relation
<metadata> The enclosing metadata section containing the HTML target specific script element.

Example

<document xmlns="http://boradoc.org/1.0">
  <metadata>
    <script src="resources/js/main.js" type="text/javascript" />
  </metadata>
</document>