Untitled Document



 Introduction to HTML
 Structure of HTML
 Creating First HTML  Document
 Building Your HTML  Document
 Tables
 Frames
 Including Images into  Document
 Understanding Image  Formats
 Including Images into  Document
 Understanding Image  Formats
   GIF
 JPEG
 Adding Images
 
   Adding Images
   Adding an Images
 Setting image as a  Background
 Including Alternative  Text
 Specifying Height and  Width
   Aligning the Image
 Controlling the Border
 Using Image as Links
 
   Using Image as Links
   Creating Image Links
 Creating Thumbnails
 Creating Image Maps
 
   Creating Image Maps
 Understanding Image  Map Types
   Client Side Image Map
 Server Side Image  Map
 Image Maps and Text  Only Browsers
 Creating Server-side  Image Maps
   Creating a Map File
 Map File and the  Image Map Program
   Linking it all Together
 Creating Client-side  Image Maps
 The <MAP> and  <AREA> Tags
 The USEMAP  Attribute
 Building Web Pages
 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.




  Including Images into your Document > Adding Images

  Adding Images

Graphics, images, pictures, photographs-whatever you call them, a visual element makes your page more compelling and is the easiest way to give your page a unique look.

Adding an Images
Setting image as a Background
Including Alternative Text
Specifying Height and Width
Aligning the Image
Controlling the Border

  Adding an Images

To add an image to an HTML document, you include a single tag with a reference to the image. The image reference is called the source, indicated by the SRC=attribute, which points to the image file. For linking to an image file, you can use the URL within the same folder or within the SRC=attribute. A URL used in the SRC=attribute is called a 'remote reference'.

In this exercise, you will learn to add an image to the HTML page.

Add images to your pages with the image tag, <IMG>. Use the src attribute to identify the image file. You can control the size and alignment of the image using the height, width and align attributes.

You can see the image on the right side of the page.


  Setting image as a Background

Most browsers support background images, the patterns or images behind the text in HTML documents. Normally, background images are tiled throughout the available space. Tiling offers two main advantages. First, you can provide a seamless background. Second, you can develop visually interesting backgrounds by ensuring that background images tile either horizontally or vertically. You can prevent the image from tiling throughout the background using BGPROPERTIES=FIXED attribute.

In this exercise, you will learn to add background image to the HTML page.

In the Body tag, add the image file to your Background attribute. Change the color of the text using the text attribute.

You can see that the background has been applied.

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