How to set images for webpage?

hi there, i am trying to get url from unplash images on line for my portfolio page but nothing working,any suggestion,thanks

Please provide a link to your codepen or show the relevant code.

use this :

with image id

many thanks…
but how to get the image Id?
when you opening the image and the link showing at the top of the page like… http:// …is that one?

yes, from that link.