• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Scripts > Setting the Default Scripting Language

Setting the Default Scripting Language

According to the HTML 4 specifications, if you don't say what language you're using, your Web page is "incorrect". If you're including several scripts on a page, you can set the default scripting language for all of them in one fell swoop.

To set the default scripting language:

1.
In the HEAD section of your HTML document, type < META HTTP-EQUIV= "Content-Script-Type".

2.
Then type CONTENT="type", where type indicates the default format and language for your scripts. Use text/javascript for JavaScript, text/vbscript for VBScript, and text/tcl for TCL.

Figure 17.19. The META tag is always placed in the HEAD section of your HTML document. Notice that it is no longer necessary to specify the scripting language within the SCRIPT tag.


3.
Type >.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint