How to convert pnj, jpg into Link in HtMl? Plzz help me | Sololearn: Learn to code for FREE!

0

How to convert pnj, jpg into Link in HtMl? Plzz help me

3/14/2021 1:04:31 AM

SAWERA AKRAM

6 Answers

New Answer

+4

<a href="page.html" > <img src='img.png'> </a>

+3

you could convert image to base64 url encoded... but that could be heavy in source code: https://code.sololearn.com/WljGVfpz1Dp1/?ref=app there are tons of online free converter that you can easily find by a google search ;)

+1

Can you explain how to specify the absolute URL to image.

0

absolute urls could skip protocol (it will be inherited by the page url protocol) by only using //: //www.example.com/directory/file.ext however, this means that your image host should handle both http and https protocols, as you don't know wich one will be used ^^