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.
(<script>………..</script>)
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)
Example:
Script.js
This is the example of an external JavaScript file. Here you  sees that the extension of JavaScript is .js

Comments

Popular posts from this blog

50 Beautiful Color Palettes for Your Next Web Project

right side toggle by js, toggle from ride side by js, toggle js for website, form toggle from right side js, js for form toggle from right side