HTML Scripts
Posted by admin | Posted in HTML Tutorial | Posted on 11-08-2010-05-2008
0
There are two very popular scripts that are commonly used in HTML to make web pages interactive. HTML javascript and HTML vbscript are very useful scripting languages.
With HTML scripts you can create dynamic web pages, like creating effects on the images or the headings of the page, or to validate the forms etc being used in the web page. These scripting languages are a bit complex than the HTML.
But once you get to know them in detail they are easy like the html only.
HTML Javascript Code
If you want to insert javascript code into your HTML you are going to use the script tag.
Example:
- <script>
- <!–script
- ***Some javascript code should go here***
- –>
- </script>
For javascript you set the type attribute equal to “text/javascript”. We also include a comment around the javascript code. This will prevent browsers that do not support javascript or have had javascript disabled from displaying the javascript code in the web browser.
HTML Vbscript How To
To insert vbscript code onto your website you must once again make use of the script tag. Below is the correct code to insert vbscript code onto your site.
Example:
- <script>
- <!–script
- ***The vbscript code should go in this spot***
- –>
- </script>
For vbscript you set the type attribute equal to “text/vbscript”. We also include a comment around the vbscript code. This will prevent browsers that do not support vbscript or have had vbscript disabled from displaying the vbscript code in the web browser.
