in order to add scripts into your web pages


In order to add scripts into your Web pages <SCRIPT> tag is utilized. The <SCRIPT> tag denote the start of the script section, whereas </SCRIPT> marks the end. An instance of this is illustrated below:

<HTML>

<HEAD>

<TITLE>Working with VBScript</TITLE>

<SCRIPT LANGUAGE="VBScript">

<!--

MsgBox "Welcome to Web page!"

-->

</SCRIPT>

The LANGUAGE attribute of SCRIPT tag indicates the language used for scripting. Usually scripts are placed at the top of the Web document, in the HEAD. There are four distinct places where you can employ scripts:

  • In the body of the page. In this particular case, the output of the script is displayed, as part of the HTML document, while the browser loads the page.
  • In the header of the page, among the <HEAD> tags. In the header scripts aren't immediately executed, but can be referred to by other scripts. The header is frequently used for functions-groups of VBScript statements which can be used as a group.
  • Inside an HTML tag. It is called an event handler and let the script to work with HTML elements. Event handlers are the one kind of script where you don't require using the <SCRIPT> tag.
  • In a separate file completely.

 

Not all of browsers support scripting languages. To handle such browsers you can include your script in comment tags (<!-- and -->).

Request for Solution File

Ask an Expert for Answer!!
PHP Web Programming: in order to add scripts into your web pages
Reference No:- TGS0416270

Expected delivery within 24 Hours