0.<script>
HTML <script> Tags
Definitions and usages <script> tags are used to define client-side scripting, such as JavaScript.
The script element can contain either a scripting statement or an external script file through the SRC attribute.
The required Type property specifies the MIME type of the script.
Common applications for JavaScript are image manipulation, form validation, and dynamic content updates.
If <script> has both src references and inline content, the SRC reference content is finally displayed, and the inline content is ignored.
Index.html
<script type= "Text/javascript" src= "Hi.js" >document.write ("I love Lao Wang too") </script>
Hi.js
document.write ("I love Lao Wang");
1. Delaying execution of scripts
Using defer
<script type= "Text/javascript" src= "Patch.js" defer></script>
2. Execute Scripts asynchronously
Using async
3.<noscript>
HTML <noscript> Tags
Definition and usage
The NoScript element is used to define alternative content (text) when the script is not executed.
This tag can be used for browsers that recognize <script> tags but cannot support scripts in them.
Note: If the browser supports scripting, it does not display the text in the NoScript element.
0 Basic Introductory Learning Web Development (HTML5&CSS3) 007<noscript><script>