Untitled Document



 Introduction to HTML
 Structure of HTML
 Creating First HTML  Document
 Understanding Basic  HTML Tools
 Creating First HTML  Document
 Understanding Basic  HTML Tools
   HTML Editors
 Web Browsers
 Starting an HTML  Document
 
 Starting an HTML  Document
 The <!DOCTYPE>  Declaration
 Setting the  boundaries With  <HTML> Tag
   The HEAD Element
   <TITLE> Tag
 A <BASE> for  Hyperlinks
 Showing  Relationships with  <LINK>
 Using <META>to give  More information
 The BODY Element
 
   The Body Element
   <BODY> Tag
 Breaking a Body into  Pieces
   Headings <Hn>
 A New Paragraph <P>
 A New Line <BR>
 Using Horizontal Rulers
 
 Using Horizontal  Rulers
 The STYLE Element
 
 The STYLE Element
 The SCRIPT Element
 
 The SCRIPT Element
 Head and Body tags
 Building Your HTML  Document
 Tables
 Frames
 Including Images into  Document
 Including Multimedia
 Developing HTML  FORMS
 Using Style Sheet
 Understanding URLs
 Using JavaScript
 Using Java

Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.




  Creating First HTML Document > The SCRIPT Element

  The SCRIPT Element

The SCRIPT element indicates a specific scripting language being used in the HTML document. The <SCRIPT> contains a section of programming code. If this code is placed in the header, it's interpreted before the document is loaded. The browsers that won't support scripting languages probably won't recognize the <SCRIPT> tag.

Syntax:

<SCRIPT [type=MIME type][src=URL][defer]>
…script content…
</SCRIPT>

mime type is an Internet mime type for the language, such as text/VBScript ,and URL identifies an external source for the script. The defer element informs the user agent that the script will not generate any content for the page, and it can continue displaying the rest of the page when it interprets this script.

  Head and Body tags

In this Exercise you will know the usage of basic Head and Body tags.

We have added the first tag of an HTML document, a <DOC> type statement. This declares the precise version of HTML you are using. It is a special SGML construct and can occur only in the very beginning, before any HTML tags.

An HTML element contains the head and the body elements of a document. This defines the basic structure of the document. Though it is optional, it is always better to use the tags to demarcate the borders of the HTML page.

Then we add the <HEAD> element. It contains the head section. It is a basic structure element and contains exactly one title element. Apart from the title element, you can add style, meta and link elements also.

We can give <meta> tags to give extra information about the document. Here it is used to give the details about the expiry of the page, some keywords for search engines to locate it and the name of the author of the page.

Next is the <TITLE> element, which is a strict requirement of an HTML document. The title is displayed on the top of the page, usually in the title bar. Titles are important because they are used to index and refer to the document.

This is the title of the document. The more descriptive a title, the more useful it will be. Title is enclosed in the <TITLE> and </TITLE> tags in the HEAD section.

Then the main part of an HTML document-"BODY", which is a visible part in the Browser is included. You can see the text formatting with block level elements (<P>, <HR> and <H1>) and text level elements such as <BR>.

Back Next


Copyrights : Layout Galaxy All Rights Reserved
No part of this tutorial may be reproduced, stored in a retrieval system or transmitted in any form or by any means, electronic, electrostatic, magnetic tape, mechanical or otherwise, without prior permission in writing from Layout Galaxy.




17, Vadsarvala Nivas, 65-A, J. Nehru Road, Mulund (W), Mumbai - 400 080 INDIA
Tel : 91-22-25795588, 91-22-25780444 Fax : 91-22-25793397
Email : ionline@vsnl.com
© Image Online 2001-2003