Images: Collage on a Theme

They say that a picture is worth a thousand words. This is why images are used often on websites. The pictures are used to help emphasize a point or help the reader visualize what the website is explaining.

In HTML, you embed images using the <img> tag with the src attribute to specify what image you want to show.

<img src=”https://upload.wikimedia.org/wikipedia/commons/5/5e/Bel_muc.jpg”>

If you add the width and height attributes, you can change the size of the image when it appears.

<img src=”https://upload.wikimedia.org/wikipedia/commons/5/5e/Bel_muc.jpg” width=”150px” height=”150px”>

The width and height attributes let you decide how big you want your image to be and lets you stop it from being too big or too small.

Leave a comment

Your email address will not be published. Required fields are marked *