I have a website and I want it to fit into html img tags so that the img tag will work.
For example, open bracket img src = "https://api.thecatapi.com/v1/images/search?format=src" close bracket is the line that will give you a picture of a cat.
I tried to do something similar by making a website, that redirects another website hosting one picture from a list using the window.location.replace function, however, plugging my website into the src isn't cutting it.
What functions/code can I use to allow my url to be used in img tags?