When a browser is not capable of handling a font package specialFont
, the following code automatically switches the font to basicFont
:
<p style="font-family:'specialFont', basicFont"> Hello world! </p>
Is the same possible for images? I have an svg image that I would like to display in general, and a backup png for browsers that do not support svg (like some mobile browsers).