+ 1
How do I insert an image in a html file?
2 Answers
+ 1
Use <img>. After it write the source of image and the text you want to display if the image will not be displayed and then the size of image.
<img src="source" alt="alt text" style="width:W;height:H;">
OR
<img src="source" alt="alt text" width="W" height="H">
Here:-
source is the location of image on your system or the url of an image on internet.(make sure to write the correct name and extension of image file)
alt text is the text which will be displayed if your image doesn't appear for some reason.
And Height and Width are the dimensions of image.
You can get more info through Solo learn or through W3schools website.
0
use the <img> tag