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

Now we have given a heading style to the text "Welcome to the Home page" to emphasize it by making it bigger than the normal text and to give it a bold effect.

The main text of the document is typed with the formatting types such as line breaks, <BR> and the paragraph breaks, <P>. Since any extra space in the HTML document is ignored, a line break is compulsory to give a break.

The largest difference between the format of HTML and the plain text is the organisation of paragraphs. If we do not give a paragraph break, HTML treats all the text as a single big block of text. So, we have started a paragraph here.

The Horizontal ruler element creates a shaded horizontal line between the text. We can give color, alignment, size, width and the noshade attributes to the rulers.

Finally we delineate the end of the document with the </BODY> and the </HTML> end tags. It tells the browsers to display the document till that. By clicking the next button you can see the display of the document in a browser.

You can see how the formatting of the text is reflected in the browser's display. Wherever the <BR> is given, the break occurs, note the paragraph break also. Observe the two types of rulers we had given.

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