HTML Images

HTML Images

images can improve your web page so let’s see how you can add images in your website using the image tag

<img src="your-images-name.jpg" alt="Test images">

You can add more images to the same page using this code let’s see

<img src="your-images-name-2.jpg" alt="Test images 2">
<img src="your-images-name-3.jpg" alt="Test images 3">

Images size and width

we can change the size and width of our images using style attributes

<img src="your-image.jpg" alt="my test image" style="width:600px;height:700px;">

We have an alternative way to change the size and width of the image

<img src="test-image.jpg" alt="my test image" width="500" height="600">

Leave a Reply