The <img> tag is used to insert images on web pages.
Attribute | Value | Description |
src | URL | Specifies the URL of an image |
alt | text | Specifies an alternate text for an image |
width | pixels | Specifies the width of an image |
height | pixels | Specifies the height of an image |
ismap | ismap | Specifies an image as a server-side image-map |
usemap | #mapname | Specifies an image as a client-side image-map |
src attribute
<img src=“car.jpg”>
<img src=“C:\image\dog.jpg”>
alt attribute
<img src=“car.jpg” alt=“car”>
// If the image is not to be open then its attribute message show in alt=”car”.
Width and height attribute
<img src=“car.jpg” alt=“car” width=“200” height=“100”>
ismap attribute
click coordinates are sent to the server.
Latest posts by vikashdev k (see all)
- PHP OOP: Traits - October 25, 2021
- PHP OOP: Late Static Binding - October 25, 2021
- PHP OOP : Static Members - October 23, 2021