JavaScript and HTML
- Scripting (HTML Living Standard)
<script>
element- Can reference an external JS file (
src
attribute) - JS code can be within
script
element
- Can reference an external JS file (
<script>
element can go inhead
, but is often placed just before the body close (i.e.</body>
) elements.- Note the
<noscript>
element for clients without JavaScript.