Z
Z
ZaxapKramer2016-11-13 11:49:03
HTML
ZaxapKramer, 2016-11-13 11:49:03

Embedding images in an object, is it relevant (correct) now?

I completed my crutch to webp so that if the browser does not support this format, the image is loaded in, for example, jpeg .
And then, by chance, I stumbled upon the "opportunity" to embed images in this way:

<object data="image.webp" type="image/webp">
  <object data="image.jpg" type="image/jpeg"></object>
</object>

Of course, it was far from talking about WebP , but for my case, the method fits perfectly. I checked support in IE8 - everything is in order ...
But here's the problem: how correct is it to do this? How good is this practice, and are there alternatives to this at the moment?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2016-11-13
@ZaxapKramer

works - right

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question