JavaScript and HTML
- Scripting (HTML Living Standard)
<script>element- Can reference an external JS file (
srcattribute) - JS code can be within
scriptelement
- 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.