HTML Images

HTML Images

In this page we will learn how to insert images in a webpage. It’s so easy and with images we can make our web page attractive.
It is an empty tag and contains attributes only so <img> tag don’t have closing tag.
Syntex
<img src=”Image Url” alt=”some_text“>

Here Src stangs for source. The src attribute tells the browser where to find the image you want to display.

The width and height attributes are used to indicate the height and width of an image. The attribute values are specified in pixels by default.
<img src=”Image Url” alt=”some_text” width=”200px” height= “200px;”>