HTML Scripting

You can include scripting language codes in your HTML body. Why do people take to using scripts?…. It makes the web page more interactive and user-friendly.


The two scripting languages commonly used is HTML Javascript and HTML Vbscript.  Before you begin to use a scripting language, you need to specify that you are using a scripting language in your HTML body. This is done using the script tag.


As with other tags, the script tag has an opening tag and a closing tag.





If you wish to use HTML Javascript, you need to specify it in your HTML code in the following way:


<script type="text/javascript">

<! This is where you input the javascript code>



Thus you specify the script language you want to use through the type attribute.


Now, in case you wish to use HTML Vbscript, you need to mention script type="text/vbscript" in your  script tag.