Use of JavaScript in different ways in html document

We can use java script in html page by three method.
·         In header section
·         In body  section (bottom of the body)
·         External  JavaScript
If we are using java  script in header and body section then we must
Put  our code between script tag.
We can use JavaScript  same like external css.
But if we are using external jacvascript. Then we don’t need script tag.
And the extension of JavaScript is  (.js)
This is the example of an external JavaScript file. Here you  sees that the extension of JavaScript is .js


Popular Posts