How To Put An Image On a Website

HOW TO PUT IMAGE ON A WEBSITE

An image illustrates an idea in a website or pictorially depicts a product. Almost every website has an image or two. In this article we look at the various ways to put an image on a website.

There are many types of images formats for the web and the most common are gif and jpg. These files format are compressed so that they will load faster on the website.

To put an image on site, you need an html tag.

If you want to link to the image through html, you will need a code like this

<IMG SRC=”website.jpg”>

The IMG is an abbreviation for image and the SRC stands for SOURCE so the tag is telling the browser that this is an image. In this example the name of the image file is website. If the image and the html file are in the same directory, then you provide the url for the image like this:

<IMG SRC=”http://yoursite.com/website.jpg”>

If they are in different directories, then you will have to provide the URL for the image as well as the directory name. If the image is located in another directory on the destination URL, then you will have to bring the name of the directory first like this:

<IMG SRC=”http://yoursite.com/images/website.jpg”>

Ron Davies

1 comment so far ↓

#1 How To Put An Image On a Website | Website Directory on 03.08.08 at 6:55 am

[...] post by Ron Share and Enjoy: These icons link to social bookmarking sites where readers can share and [...]