Harvard Extension School
CSCI E-12 Fundamentals of Web Site Development | Spring 2019

## JavaScript and HTML

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

Copyright © David Heitmeyer