Roots
Back

HTML Images

How to insert an image

You insert an image into your website using the <img> tag. This can have several attributes, but the one which must be included is src;

<img src="url">

url - The full or relative address of the image.

Additional image attributes

<img src="url" border="value" height="value / percentage" width="value / percentage" alt="text">

value - A number of pixels.
percentage - A percentage of the containing element.
text - Text to display if the image cannot be loaded. It is a good idea to include this.