Images
HTML ⚭ Jun 6, 2016 ⚭ 254 views
Html Images
Images are very useful to increase the beauty of a website. It is true that one single image is worth than thousands of words. In Html, images are defined with the <img> tag. To display an image on a page, you need to use the src attribute. Src stands for "source". The value of the src attribute is the URL of the image you want to display.
Use the <img /> tag to place an image on your webpage. Like the <br /> tag, <img /> tag does not require a formal ending tag. Instead, all we need to do to close this tag out with a slash (/) placed just inside the ending bracket (/>).
<img /> Attributes
Attribute | Description |
---|---|
src | Specifies the URL of the image file. |
alt | Specifies an alternate text which will be displayed if image is missing. |
title | Specifies a text title for the image. |
width | Specifies width of the image. |
height | Specifies height of the image. |
border | Specifies a border around the image. |
align | Specifies horizontal alignment of the image. |
valign | Specifies vertical alignment of the image. |