+ 1

How to get src of an image in html

1st Oct 2020, 7:47 AM
Bhavyank
Bhavyank - avatar
5 Answers
+ 6
Open link and click on choose photo option and select your photo and copy 2nd link and paste on your code https://postimages.org/ Or you can use dropbox you can download it from playstore.
1st Oct 2020, 7:58 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 5
Bhavyank If you are pasting a website then do this. Open the website--> click on share --> click on copy to clipboard--> then put it in img tag. If this is what you want. Then we'll and good. If not then kindly clarify what you want to say. Hope this helps and you understand 👍
1st Oct 2020, 8:05 AM
Piyush
Piyush - avatar
+ 4
Pardon! What you mean by this question, Do you want to see where the src of an image will be in the html page? Or do you want to render the image into html page (is it for this you want how to get src?) I didnt get you :)
1st Oct 2020, 7:59 AM
chaithra Gowda
chaithra Gowda - avatar
1st Oct 2020, 8:29 AM
LIONEL
LIONEL - avatar
+ 2
document.querySelector("img_element").src;
1st Oct 2020, 8:33 AM
Twaatii
Twaatii - avatar