Web Programming and computer Blog
Latest news

Main Menu

Html Tags List
Meta Tags
Headings
Backgrounds
Inserting text
Text Manipulation
Linking
Images
Tables
Forms
Color Chart
Frames
Example Web Pages
Contactus

Images

Tag used to add an image to a page: <img src=”Image URL”>

 

Example:

<img src=”http://www.google.com/logo.gif>

 

This code will display Google’s logo in your page.

 


 

● Linking an image:

 

Linking an image is similar to a text linking and is done by <a> tag: <a href=”URL”><img src=”Image URL”></a>

 

<a href="google.com"><img src="google.com/logo.gif"></a>

 

 Go to Google Home

Try clicking on the logo. Viola!


 

● Images Alignment:

 

After you have placed your graphic image into a document, you may find that the text has not displayed exactly where you wanted in relation to the graphic image. To align images we will use the align attribute. The alignment can be defined to right, left, center or bottom.

 

<img src="logo.gif" align="left">

 

This will cause the image to be aligned to the left side of the page.

 


 

● Images Resizing:

 

If the Image is too big or too small, it can be resized to fit exactly as you want on the page. The two attributes that need to be defined are the width and height of the image:

 

<img src=”logo.gif” width=”350” height=”200”>

 

This will resize the image to 350x200.

 

Ads

Html Help
Daily Pages that Suck

02/02/2006 06:00 PM
3D Effects in graphic design for the web
Guidelines on how to use 3D effects effectively in graphic design for the web
02/02/2006 06:00 PM
About goals
Why goals are important.

© 2005 Htmlhelps.net, Inc. All rights reserved. Terms of Use and Disclaimer