how do i add images to my webpages in HTML put pictures photos pics
home hosting domains company Design suppport FORUMS CONTACTUS  
Suppport
 
Contact Us Tutorials Guides FAQs Forums
FAQs CATEGORIES
Web Hosting
Domains
PHP Scripts
MySQL Database
HTML
Perl
Javascript
General
 
FAQs
Visit our Frequently Asked Questions Section to find the answer you are looking for

how do i add images to my webpages in HTML put pictures photos pics


With HTML you can display images in a document.

 

The Image Tag and the Src Attribute

In HTML, images are defined with the <img> tag. 

The <img> tag is empty, which means that it contains attributes only and it has no closing tag.

To display an image on a page, you need to use the src attribute. Src stands for "source". The value of the src attribute is the URL of the image you want to display on your page.

The syntax of defining an image:

<img xsrc="url" mce_src="url">

The URL points to the location where the image is stored. An image named "boat.gif" located in the directory "images" on "www.webune.com" has the URL: http://www.webune.com/images/headers/faqs.jpg.

The browser puts the image where the image tag occurs in the document. If you put an image tag between two paragraphs, the browser shows the first paragraph, then the image, and then the second paragraph.


The Alt Attribute

The alt attribute is used to define an "alternate text" for an image. The value of the alt attribute is an author-defined text:

<img xsrc="faqs.gif" mce_src="faqs.gif" alt="Frequently Asked Questions">

The "alt" attribute tells the reader what he or she is missing on a page if the browser can't load images. The browser will then display the alternate text instead of the image. It is a good practice to include the "alt" attribute for each image on a page, to improve the display and usefulness of your document for people who have text-only browsers.


Basic Notes - Useful Tips

If an HTML file contains ten images - eleven files are required to display the page right. Loading images take time, so my best advice is: Use images carefully.

Image Tags

Tag Description
<img> Defines an image
<map> Defines an image map
<area> Defines a clickable area inside an image map

 

 
   
 
 
 
home | hosting | domains | company | Design | suppport | Sitemap
 
Copyright (c) 2004-2007 - All Rights Reserved. Webune ® is a Registered Trademark
 
Page generated in 0.0510 seconds