HTML, How to put an image? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

HTML, How to put an image?

How to put an imagen? Help!!

22nd Oct 2019, 10:44 AM
Yilver Quevedo
Yilver Quevedo - avatar
17 Answers
+ 1
To insert an image in your HTML code: <img src="image directory" /> <img> -Specifies an image src -Reference to the source of the image to be used Image directory-The location of image Hope it helps
23rd Oct 2019, 12:52 PM
Hayzeed
+ 7
<img> does not need an end tag.
22nd Oct 2019, 12:35 PM
Sonic
Sonic - avatar
+ 3
use img tag and use src tag for image url or an alternative alt tag that defines any text about imag eif browser didn't support <img src="url" alt="text">
23rd Oct 2019, 11:54 AM
Prashant Yadav
Prashant Yadav - avatar
+ 2
<img src="url"> this not have final tag
22nd Oct 2019, 10:50 AM
Yilver Quevedo
Yilver Quevedo - avatar
22nd Oct 2019, 12:34 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
<img src"files name and directory " >
24th Oct 2019, 4:35 AM
ant
ant - avatar
+ 1
Use img tag like following code <img src="url" alt="any-text" > if you want to insert image from your local storage move the image into html file folder and simply add name of image instead of url field otherwise copy the url from browser and put the url of image into the url field Hope this is helpfull
23rd Oct 2019, 10:08 AM
Abdul Samad
Abdul Samad - avatar
0
Angelo Romero Cairel from device is not working in SL, from dropbox better
23rd Oct 2019, 6:23 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
To import image into your html file on Solo learn <img src="url-link" alt="the-description" width="px, cm, % etc" height="px, cm, % etc" /> Explanations: <img /> : is the image tag and the end backslash are added to close the tag src : is the attribute of img tag which requires value src="url-link" : the url-link represents the the link to the image or directory e.g <img src="www.sololearn.com/home/logo.png" alt="Sololearn logo" width="50%" height="30%" /> that's for the image from another site <img src="Image/logo.png" alt="Sololearn logo" width="50%" height="30%" /> that's for the image from directory or file
23rd Oct 2019, 2:56 PM
Oduola Rasheed Olaide
Oduola Rasheed Olaide - avatar
0
<img src="photo.png" alt="Not support in browser">
23rd Oct 2019, 4:28 PM
coder
coder - avatar
0
To insert an image in html use <img> tag. <img src= urimageloction/imagename.jpg(or)png /> Here src will direct the location of image Eg: <img src = cute.jpg />
24th Oct 2019, 4:43 AM
sri
0
judging by the number of responses this guy will become an enlightened guru for inserting images on a web page!
24th Oct 2019, 4:51 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
0
Go to www.imagebb.com upload your images and copy url then paste it to your code ,if you open browser you will see your image
13th Nov 2019, 4:07 PM
Razack VON Razack
Razack VON Razack - avatar
0
<img src="img.jpg" alt="Not Support">
15th Nov 2019, 5:37 PM
coder
coder - avatar
0
You can add image using IMG tag with src attribute
22nd Apr 2020, 1:34 AM
Kumar Ujjawal
Kumar Ujjawal - avatar
0
Where src will be the location of the image
22nd Apr 2020, 1:35 AM
Kumar Ujjawal
Kumar Ujjawal - avatar