How To Use The HTML <img> Tag
Syntax
Syntax of HTML <img im> tag
<img src=" . . . " alt=" . . . ">
- HTML image tag is <img> element denoted
- HTML <img> tag use purpose embed image in your web page.
- HTML Image tag write <img src ="...">
- HTML Image tag URL/path. to the image
- HTML Image tag self -closing tag.
- HTML Image tag is not closing tag,(only opening tag).
- HTML browser to display image form file use .png, .jpg, .gif, ... etc
How To Use The HTML <img> Tag
Example
<!DOCTYPE html>
<html>
<body>
<img src="https://img.freepik.com/free-photo/long-shot-bird-lake-with
-blurred-background_23-2148245168.jpg?semt=ais_hybrid&w=740&q=80"
width="200" height="200">
</body>
</html>
How To Use The HTML <img> Tag
Explain Program
Step 1]
<!DOCTYPE html>
This declare the document type.
browser that the document is written in html
