JavaScript can be implemented using JS code in between <script> …. </script> tag if you have kept your JS code inside the HTML document itself. The script tag contains two significant attributes: -
·
Language- This attribute indicates what
scripting language you are using in a web page. Normally, the standard will be
“javascript”. Latest version of Html(Html5) does not require the use of this
attribute anymore.
·
TYPE- This library is used for what is
presently instructed to show the scripting syntax being used and in JavaScript
its value should be set to “text/javascript”.
Comments
Post a Comment