Harvard Extension School, Fall 2018
CSCI E-12 Fundamentals of Web Site Development

## 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