HTML Tutorial
HTML Forms
HTML Graphics
HTML Media
JavaScript makes HTML pages more dynamic and interactive.
<script>
TagHTML <script>
tag is used to define a client side script
(JavaScript).
The <script>
element contains text statements, or
identifies an external text file with the src attribute.
Common uses of JavaScript are image manipulation, form verification, and dynamic content changes.
To select an HTML object, JavaScript usually uses the document.getElementById()
method.
This JavaScript example is labeled "Hello JavaScript!" in an HTML object with id = "demo":
Here are some examples of what JavaScript can do:
JavaScript can change styles: