+ 1
How to put an a image in html
2 Answers
+ 3
in HTML5 we use <iframe> but in basic HTML we use <img>
example:
<img src="example.jpg" width="25%" alt="example" ></img>
alt is used if image doesnt load then its will make desc.
0
Common is to use
<img src="somePath" alt="text to show if site can't acess image source and for screen readers and SEO to understand what is on image" />
You can import both local image from project directory or image from some web location.
In SoloLearn local wont work because our code is on the cloud not saved on our pc or phone, for this you can import image to for example dropbox and take url.