Answer the question
In order to leave comments, you need to log in
How to mark up and style the picture tag?
Good afternoon!
The question is certainly strange, but I realized that I don’t understand a little how it works ...
Let’s say I have a lot of conditions for different situations, in the tag picture
:
<picture>
<source type="image/webp" media="(min-width: 1200px)" srcset="img/[email protected], img/[email protected] 2x">
<source type="image/webp" media="(min-width: 860px)" srcset="img/[email protected], img/[email protected] 2x">
<source type="image/webp" srcset="img/[email protected], img/[email protected] 2x">
<source media="(min-width: 1200px)" srcset="img/[email protected], img/[email protected] 2x">
<source media="(min-width: 860px)" srcset="img/[email protected], img/[email protected] 2x">
<img class="section__image" src="img/[email protected]" srcset="img/[email protected] 2x" alt="Фото">
</picture>
source
? Or does it have to be controlled somehow?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question