favoritearticlesinc.com favoritearticlesinc.com
   Index >> About Us >> Privacy >> Terms of Use >> Add Url >> Submit Article
Search:   
Free links exchange
 
   

Drink & Food

   

Computers & Networking

   

Policies & Law

   

Property & Estate

   

Education & Learning

   

Investment & Finance

   

Health & Hygiene

   

Careers & Employment

   

Automotive

   

Self Help

   

Technology & Science

   

Art & Creative

   

Recreation & Entertainment

   

Business & Commerce

   

Lifestyle & Fashion

   

Healthcare & Medicine

   

Issues & News

   

Travel & Vacation

   

Malls & Shopping

   

Family & Home

   

Games & Play

   

Adventure & Sports

   

People & Society

   

Teens & Kids

 

Index –› Computers & Networking –› Web Design & Development
 

Understand and Manipulating Image Tags in HTML

 

Understanding Image Tags

This tutorial will help you learn different commands that will allow you to manipulate your images to your liking. The code given is written in HTML (HyperText Markup Language) similar to the code you copy and paste from image hosting sites, to view your images at a desired location. To best understand this tutorial you must understand the basic html structure. Insert the actual content codes here

To properly use code in examples copy and paste content the examples inside < >

Basics of the Image tag

The image tag allows you to display images in many formats on a webpage. The tag used for displaying an image in html code is img. With all html there are certain attributes that can be associated with the image tag to allow it to perform different functions. These include:

Src Attribute - REQUIRED

The source (src) attribute is the location or URL where the image resides on the internet. This attribute must always be used or your image will not be shown as the browser will not know where to retrieve it from.

Example: img src="http://www.iuploadhere.com/image.jpg"

Alt Attribute - OPTIONAL

The alternate text (alt) attribute is used to displayed text in place of an image that cannot be found or when image downloading is turned off by the user. This feature is to help the user understand what he/she should be viewing if the image doesn't display.

Example: img src="http://www.iuploadhere.com/image.jpg" alt="My Image"

Align Attribute - OPTIONAL

The align image command allows you to position the image in correspondence with the surrounding text. Commands used include top, bottom, middle, left, and right.

Example: img src="http://www.iuploadhere.com/image.jpg" alt="My Image" align="Top"

Width and Height Attributes - OPTIONAL

These commands allow you to change the size of the image on the website. The attributes used are width="#" and height="#" where the # represents a number (in pixels) that you wish to use. Remember when using this command that you are not actually modifying the image but only temporarily changing the size which can cause distorted images.

Example: img src="http://www.iuploadhere.com/image.jpg" alt="My Image" align="top" width="50" height="40"

Background Image Attribute

The background image command allows you to place your image in the background of your website as a wallpaper. As you can see in the example below, this attribute must be placed within the tag at the beginning of your HTML document. If your image is smaller then the area of the page it will tile itself.

Example: body background="http://www.iuploadhere.com/background.jpg"

Turning an image into a Link

This command allows you to turn your image into a link that people can click to direct them to another webpage on the internet. When the user scrolls over the image the mouse cursor will change from the arrow to a hand with it's index finger pointing. This command requires you to surround your image tag with the html tags shown below in bolded text.

Example:

a href="http://www.iuploadhere.com">img src="http://www.iuploadhere.com/image.jpg" alt="My Image">

Author: Ken Taylor
 
Author Bio:
Ken Taylor is a renowned writer. Ken likes to compose articles about this field.
 
 
 

Related Articles

 
Your Internet Success System 2001
 
Prosperous Farming and Educated Internet Marketing - the Two are Similar!
 
How To Drive Traffic To Your Website
 
Intel Celeron vs Pentium
 
Digital Video Recorders
 
Ebooks - How To Bring Them Into The Market
 
Adware, Spyware and Monitoring Software--What's What?
 
Do You Want to Start a Internet Home Business? Make it a Successful One!
 
Building a Website the Easy Way
 
The 3 Vital Ingredients For a Successful Paid Survey
 
 
 
 
 

Professional Web Hosting Designs

A flashy looking website with lot of graphics and slow navigation will not work for most professiona ... - Eric Morris
 

Ebooks: How to Write an Ebook

The hardest part of writing is the first sentence. When you look at the whole project, it seems like ... - Charlie Yeoh
 

The Good Old Arcade Game: History And Development

Gaming is already a part of our lifestyle. Starting in childhood, once we see moving images of gamin ... - Rudolph Jones
 
 

What's the Big Hurry?

Fairly naive, something like this: "I have recently established a site called wazooski.com and would ... - Rick Hendershot
 

If You Are So Smart Why Aren't You Rich?

A thought provoking question for those who think they know it all but are still struggling from day ... - Bruce Seah
 
 
   Index >> Privacy >> Terms of Use
© 2008 www.favoritearticlesinc.com All Rights Reserved.