How to insert images to a web page

Having set both the main text and the links of your web page, what almost everybody likes to do is to insert one of more graphs to make the web page a little more appealing. Here, how to do it.

How to add a graph to a web page

To add an image to a web document, you need to indicate the source of the file and to provide an alternate text for those who can't see graphics.

<img src="image.jpg" alt="Description of the image here." />

Most designers, however, like to place their images in a sub-folder to keep their sites tidy. Thus, if you create a folder named pics and you store your graphs there, you will have to indicate the graphs folder too.

<img src="../pics/image.jpg" alt="Description of the image here." />

As you see, it is very easy. You can even set an image as a link, like this:

<a href="b.htm"><img src="image.jpg" alt="Description of the image here." /></a>

Click here to continue.


Creative Commons Heptagrama, the web summed up.
Some rights reserved.

Discover and learn + Computers and the Internet

Do not click.
Enviar / Send