Harvard Extension School Spring 2017
CSCI E-12 Fundamentals of Web Site Development
« previous
|
Slide 19
|
next »
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.
TOC
« previous
|
Slide 19
|
next »
Copyright © David Heitmeyer