Web Hosting Directory | Web Hosting Resources | Webmaster Resources | Domain Tools | Search Engine Marketing | Forums
  Signup
Today: 876   Yesterday: 1,235   Max: 1,872   Total: 481,853   Current Users : 19 (Member 0) 
DOMAIN TOOLS

WEBMASTER TOOLS

RELATED ARTICLES

SUBMIT AN ARTICLE

Write for us and get publicity, link to your website, and best of all get paid. Please visit our writers page for details.


LINK TO US

Link to us and earn points for each visitor you bring to us. Please visit our link partner page for details.

 

Attribute for <IMG ...>
SRC = "text string"

SRC tells where to get the picture that should be put on the page. SRC is the one required attribute for <IMG ...>. For example, suppose that the GIF file "../graphics/pumpkin.gif" is in the same directory as this page. We can place it in the page like this:

this code produces this
<IMG SRC="../graphics/pumpkin.gif" ALT="pumpkin">
pumpkin

SRC is a hypertext reference, like the <A HREF="..."> attribute. The reference can be relative (like the example above) or it can be a "fully qualified" reference. The most common use for fully qualified references is for the "access counter" images you see on some web pages. These counters work by calling an image file located on some other web server which specializes in access counters. That server looks at what web page is calling the image (that information is given in the URL), looks at the record for how many times that image has been called, and generates an image file with the numbers in the image. Suppose, for example, there is an access counter located at the server of our friends ninthwonder.com (there isn't really):

this code produces this
<IMG src="http://www.ninthwonder.com/~miko/counter.gif?name=idocsguide" ALT="counter">
counter

Unfortunately, because it is very common to turn images off, many users never see the access counter. In these situations the page reads like this: "This page has been accessed [image] times".



Copyright 1997-2002 Idocs, Inc. Written by Miko Sullivan.

 
 
 
What is your major source of website traffic?
 
 
 
 
 
 

ADVERTISEMENT

 
Cheap Web HostingBudget Web HostingEcommerce Web Hosting
Link to UsLink ExchangeAdvertisePrivacy PolicyTerms Of ServiceAbout UsContact UsSitemap
Copyright © 2006 - 2008 Broadband Media, Inc. All rights reserved.