I want to start using WebP on my site. I'm converting code that looks like this:
<img src="example.jpg" width="100" height="100" alt="Example">
To code that looks like this:
<picture>
<source srcset="example.webp" type="image/webp">
<img src="example.jpg" width="100" height="100" alt="Example">
</picture>
Where is the correct place to put the width and the height attributes? Does simply using the height and width attributes in the <img> element work, even when a <source> image is selected?