Search code examples
htmlimageunicodesrc

Can Unicode be used in 'src' attribute of <img> tag instead of a path


I was wondering if we could use Unicode images in the src attribute of img tag instead of a path. Will the browser be able to identify the code?


Solution

  • No. Images need to be images, not characters from a font.

    The value assigned to src needs to be the URL to an image. It can't be some text. It can't be the URL to a font.