Image is used to insert image in html document, following attributes are used with image element.
Src attribute is used to insert image in HTML document, src stands for source and source is image location.
<img src=image location
/>
You can use image element any where within a HTML document.
alt attribute is used to provide information about image <img /> tag. The alt full form is alternate, By using alt attribute you can show message about image to viewer when your image does not appear in browser.
<img src=image location
alt=about image
/>
Width and Height attributes of image increses or decreases size of image.
<img src=image location
alt=about image
width=width in %, number
height=height in %, number
/>
You can make any shape of image using CSS.
Image is not a pair tag and output of image is image like you can see in above example.
Open notepad or any other text editor, follow the following points.
save file with name task.html or task.htm and then open it using any browser and see results.
Don't forget img is empty element which means it always comes in single not in pair.