To use Javascript in HTML page - you can specify the <script> tag.

You can provide javascript in same file using script tag or you can  refer to  javascript written in external file. To specify external file you will use "src" attribute of script tag.

The common scenarios of javascript usage is - displaying slide show, image/text changes.

HTML Javascript Syntax

document.write("My javascript got executed")
< /script>

Sample Code




Attributes    Blocks    Color-Values    Colornames    Colors    Comments    CSS    Editors-for-writing-html    Elements    Entities    Formatting-in-HTML    Forms    Head    Headings    HTML-Reference    IFrames    Image    Javascript    Layouts    Links    Options for building websites    Paragraphs    pointers and questions    Symbol-for-Mathmatics    Symbol-for-Punctuations    Symbols    Tables    Whats-new-in-HTML5