+ 1

Hello plz I have a problem.

Can you help me plz? I wanna get a link of a random image to put in img tag in HTML, how can I do?

23rd May 2020, 10:22 AM
YoungMind
YoungMind - avatar
9 Respostas
+ 2
YoungMind You forgot to add the extension .jpg, which can be seen in 𝐊𝐱𝐱𝐛𝐹 𝐆𝐡𝐚đČđšđ„ 's code. Without it the link redirects to a webpage (which of course isnt an image), instead of an image. Be careful to use the link to the image and not the webpage as mostly simply adding a .jpg or .png extension might not work.(though it works here)
23rd May 2020, 10:57 AM
Prabhakar Dev
Prabhakar Dev - avatar
0
go with Unsplash.com
23rd May 2020, 10:24 AM
Ashish Gupta
0
Thx both of yu mates!
23rd May 2020, 10:31 AM
YoungMind
YoungMind - avatar
23rd May 2020, 10:35 AM
YoungMind
YoungMind - avatar
0
Whaaat how did you do that?
23rd May 2020, 10:50 AM
YoungMind
YoungMind - avatar
0
Ok but how? How did you do that? So I can use it in other images (sorry for being quiet stupid)...Shall I just add some letters or what?
23rd May 2020, 10:57 AM
YoungMind
YoungMind - avatar
0
Use unsplash Api
24th May 2020, 10:35 AM
Ashish8796
Ashish8796 - avatar
0
Vitaliy ...?
24th May 2020, 9:32 PM
YoungMind
YoungMind - avatar
- 1
You must learn JSON and some frameworks or libraries !
24th May 2020, 9:28 PM
vitaliyirtlach
vitaliyirtlach - avatar