Script Tag in HTML5
In this article I am going to describe about the implementation and use of Script Tag in HTML5.
The <script> tag is most important for dynamic page. It is use for adding capability of scripting language in HTML document. We also use <noscript> tag for providing content to browsers that don't support your scripting language.
script element is used to embed or reference an executable script within an HTML or XHTML document. Scripts without
defer attributes are fetched and executed immediately, before the browser continues to parse the page.
<script> tag is supported in all major browsers.
Syntax of <script> Tag in HTML5
<script type="">Scripting code</script>
||Specifies that the script is executed asynchronously
||Specifies the character encoding used in an external script file
||Specifies that the script is executed when the page has finished parsing(loaded)
||Specifies the URL of the external script file
||Specifies the type of script.
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<meta charset="utf-8" />
<h1>Implementation of <script> tag in HTML5.</h1>