mozilla

Compare Revisions

<script>

Change Revisions

Revision 45716:

Revision 45716 by Sicking on

Revision 45717:

Revision 45717 by McGurk on

Title:
script
script
Slug:
HTML/Element/Script
HTML/Element/Script
Tags:
HTML, HTML:Element, "HTML:Element Reference"
HTML, HTML:Element, "HTML:Element Reference"
Content:

Revision 45716
Revision 45717
n10    <h3>n10    <h2>
n12    </h3>n12    </h2>
13    <ul>13    <table class="standard-table">
14      <li>Element Type: <a href="/en/HTML/Block-level_elements" t14      <tbody>
>itle="en/HTML/Block-level_elements">block‐level</a> 
15        <tr>
16          <td>
17            Content categories
18          </td>
19          <td>
20            <a href="/en/HTML/Content_categories#Metadata_content
 >" title="en/HTML/Content_categories#Metadata_content">Metadata co
 >ntent</a>, <a href="/en/HTML/Content_categories#Flow_content" tit
 >le="en/HTML/Content_categories#Flow_content">Flow content</a>, <a
 > href="/en/HTML/Content_categories#Phrasing_content" title="en/HT
 >ML/Content_categories#Phrasing_content">Phrasing content</a>
21          </td>
15      </li>22        </tr>
16      <li>Allowed Content: script content23        <tr>
24          <td>
25            Permitted content
26          </td>
27          <td>
28            Dynamic script such as <code>text/javascript</code>.
29          </td>
17      </li>30        </tr>
31        <tr>
32          <td>
33            Tag omission
34          </td>
35          <td>
36            None, must have both a start tag and an end tag.
37          </td>
38        </tr>
39        <tr>
40          <td>
41            Permitted parent elements
42          </td>
43          <td>
44            Any element that accepts metadata elements, or any el
 >ement that accepts phrasing content.
45          </td>
46        </tr>
47        <tr>
48          <td>
49            Normative document
50          </td>
51          <td>
52            <a class=" external" href="http://www.w3.org/TR/html5
 >/scripting-1.html#script" rel="external nofollow" target="_blank"
 > title="http://www.w3.org/TR/html5/scripting-1.html#script">HTML5
 >, section 4.3.1</a> (<a class=" external" href="http://www.w3.org
 >/TR/html401/interact/scripts.html#h-18.2.1" title="http://www.w3.
 >org/TR/html401/interact/scripts.html#h-18.2.1">HTML4.01, section 
 >18.2.1</a>)
53          </td>
54        </tr>
55      </tbody>
18    </ul>56    </table>
19    <h3 id="Attributes" name="Attributes">57    <h2>
n21    </h3>n59    </h2>
60    <p>
61      Like all other HTML elements, this element supports the <a 
 >href="/en/HTML/Global_attributes" title="en/HTML/Global attribute
 >s">global attributes</a>.
62    </p>
n54    <h3>n95    <h2>
96      DOM interface
97    </h2>
98    <p>
99      This element implements the <a href="/en/DOM/HTMLScriptElem
 >ent" title="en/DOM/HTMLScriptElement">HTMLScriptElement</a> inter
 >face.
100    </p>
101    <h2>
t56    </h3>t103    </h2>

Back to History