What Are HTML Scripts?
Add scripts to HTML (an application under the standard universal markup language) to make it more dynamic and interactive.
HTML script
- script element
- The <script> tag is used to define client-side scripts, such as JavaScript. [1]
- If the browser simply cannot recognize the <script> tag, the content contained in the <script> tag will be displayed on the page as text. To avoid this, you should hide the script in comment tags. Older browsers (browsers that don't recognize <script> tags) will ignore these comments, so the content of the tags will not be displayed on the page. Those new browsers will read these scripts and execute them, even if the code is nested inside comment tags.
- JavaScript:
<scripttype = "text / javascript"> <!- document.write ("Baidu Encyclopedia") //-> </ script>
- VBScript:
<scripttype = "text / vbscript"> <!-document.write ("Baidu Encyclopedia") '-> </ script>