Html-Scripts

Html-Scripts

Html – scripts

There are two most common scripting languages that are generally utilized in HTML to create web pages. If you have the time, JavaScript and VBScript are very effective scripting languages to understand.

You can produce dynamic web pages, create image rollovers for actually cool menu effects, or even validate the data on your HTML forms before users render their data via HTML scripts. However, compared to HTML, JavaScript and VBScript are too complex. It seems to be easier to download someone else’s scripting code and justify it for use on your web page (if they have given you permission to do so, of course!).

Html javascript code

You have to use the <script> tag, if you which to add JavaScript code within your HTML. Below is the correct code to be added JavaScript code within your site.

HTML Code:

 

For JavaScript, you arrange the type characteristic identical to “text/javascript”, which is resemble to the trend of specifying CSS. We can also consider a comment around the JavaScript code. This will hinder browsers that do not support JavaScript or have had JavaScript disabled from mutilated the JavaScript code in the web browser.


Html – vbscript

You have to utilize the <script> tag to add VBScript code within your website once more time. Below is the appropriate code to add VBScript code within your site.

HTML Code:

 

For VBScript, you arrange the type characteristic identical to “text/vbscript”, which is resemble to specifying CSS. We also consider a comment around the VBScript code. This will hinder browsers that do not affirm VBScript or have had VBScript mutilated from showing the VBScript code in the web browser.


Html – <!– commenting scripts –>

Scripting languages including JavaScript and VBScript must be commented out, too. You will understand that it is only once they are located within the <script> tags that the browser performs the scripts without causing errors.

HTML Code:

 

We are going forward via this example. Just be sure you comprehend when to utilize comments and where to search them. They are a very efficient tool for any large HTML project.

 

Leave a Reply

Your email address will not be published. Required fields are marked *