A few words of thanks would be greatly appreciated.

How to add an image to your website

For web-design, images may be required to be uploaded to a website.To do this you can call on the help of many interfaces. Users can also write code which meet their custom needs. To upload pictures to a website in JPEG format, BMP, PNG or GIF extension specific code can be written that allows the the image to be uploaded. There are also custom codes for images that needs to be uploaded from the URL on the internet. When naming the images no symbol or alpha numerical characters should be used and the pictures must be in direct directory. If they are stored in a file, then the folder name should be added before the file name.

The code usually used to add an image to your website is:
<img src="image.jpg">

This works if you have to upload a JPEG format, but it can also support a BMP, PNG or GIF extension. This option is used while browsing an image that is being stored on your computer.

If you want to use an image from the internet, you can specify a URL as the source, as shown in the code here:
<img src="http://internetaddress.image.jpg">

Note: while naming your pictures, ensure that they do not contain any symbols or alphanumeric characters. If the images are found in a folder and not a direct directory, do not forget to add the folder extension before the file name, separated by slash symbols.

A few words of thanks would be greatly appreciated.

Ask a question
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team

Published by . Latest update on by Paul Berentzen.

This document, titled "How to add an image to your website," is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (https://ccm.net/).