|
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.
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>.

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.
|
|
|