Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Articles Thread, HTML Images in HTML / XHTML; HTML Images The Image Tag and the Src Attribute In HTML, images are defined with the <img> tag. The <img> ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=5572


Reply
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,425
28-10-2008, 07:20 PM
 
HTML Images


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:
HTML Code:
<img 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.egypt.com" has the URL: http://www.egypt.com/images/boat.gif.
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:
HTML Code:
<img src="boat.gif" alt="Big Boat">
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.
Image Tags

PHP Code:

   Tag Description   
<img> Defines an image   <map> Defines an image map   <area> Defines a clickable area inside an image map
__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
Reply

Articles Thread, HTML Images in HTML / XHTML; HTML Images The Image Tag and the Src Attribute In HTML, images are defined with the <img> tag. The <img> ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=5572


Bookmarks

Tags
html, images


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Upload images using the datamanager Developer Articles 0 28-12-2008 04:34 PM
Removing background from images Alex Ross Photoshop 2 20-11-2008 01:09 AM
Lesson : HTML Linking to E-Mail in HTML Tutorial Developer Articles 0 17-10-2008 09:14 PM
Search and Quicklink Images Developer Mods for 3.7.x 0 12-09-2008 04:48 AM
Wall-E / Walle Hi-Res Wallpapers and Images Developer Image Gallery 0 06-09-2008 04:42 AM