0
How to add a picture?
In html, how can i add a picture.
11 ответов
+ 3
Arian Roy you really need a host service such as google dropbox or an outter service such as imgbb.com .. Once hosted then transfer the url to the image tag per what Prashanth Kumar mentioned.
https://code.sololearn.com/WW6t4B73kJVz/?ref=app
https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app
+ 3
For sololearn, I don't think you can add pictures directly.
Just go to:
1.postimages.org
2. Upload the image you want to use there
3.copy the DIRECT LINK
4. Then paste it in your img tag.
<img src="the direct link you copied" alt="a girl">
+ 1
First, tou must find some pictures on google then copy link of picture and paste in img tag😁
+ 1
OK, here is image tag thet you use to insert image on your website:
<img height="" width="" src="" alt=""/>. You have to type width and height in their attributes' values and be careful! It should be the same size as your image is, then put the src value must be your image name on your computer. Be careful the image and your HTML file have to be on the same file. And type alt's value the name of image because if somebody's browser doesn't support it'll show the alt's value. Like this:
My image width and height is 100. Its name is nature.jpg.
<img height="100" width="100" src="nature.jpg" alt="nature_image"/>
0
<IMG src="theimagefile" alt="theimageinfo/name">
0
You can also add width and height into the tag up there👆🏻 and measure them with "px" or percentage
0
Background image or just an image for one part of div?
0
Just add img tag in your code and give the address of the image you want to add...