OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How do you put your url in a img tag (html)? [duplicate]

  • Thread starter Thread starter htmlnoob42069
  • Start date Start date
H

htmlnoob42069

Guest
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?

<p>I have a website and I want it to fit into html img tags so that the img tag will work.</p>

<p>For example, open bracket img src = "<a href="https://api.thecatapi.com/v1/images/search?format=src" rel="nofollow noreferrer">https://api.thecatapi.com/v1/images/search?format=src</a>" close bracket is the line that will give you a picture of a cat.</p>

<p>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.</p>

<p>What functions/code can I use to allow my url to be used in img tags?</p>
 

Latest posts

Top