This enables you to select the most efficient image and ensure it displays in proportion to the screen.Īn example of how this looks in your image tag can be seen below: Things You Should Know About Responsive Images In the size attribute, you specify the size the image should scale to. The browser then checks the width and selects the largest image that matches the browser width or lower. In the srcset attribute, you assign an image width. These attributes provide information to the browser about what sizes are available and when those sizes should be selected. To control how these sizes are used, WP includes the img tag attributes srcset and sizes. You can also modify these sizes or add additional sizes manually.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |