HTML Image Element
We can add images in our website. Detail of image tag is given below:
<img> tag:
<img> stands for image. It do not have a closing tag. <img> tag is used to add images to a website. It contains two attributes. href and alt.
href:
href is attribute of the image tag . It is the address of image where we can add the link of the image. If you want to add an image from your browser then you can copy image address and paste it under href.
For Example:
<!-------This image address is from your computer folder---------->
<img src="car.png" alt="">
alt:
alt is also the attribute of <img> tag. We can write the image names it helps us when image is not opening in our website. For Example:
<img src="car.png" alt="car image here">
There are many attributes that we can add in our <img> tag . If you want to check all the attributes of <img> tag the link is given below:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img
Tip:
If you want to crop or resize the image the link is given below: https://www.befunky.com/
Comments
Post a Comment