i want to use different images when opened in different devices. i have set a background image in the paragraph tag.
<p style="background-image: url('outdoor.jpg"); color: #fff; font-size: 20px"> blablablabla</p>
how can i use the below tag instead of the above "background-image".
<picture>
<source media="(min-width: 950px)" srcset="outdoor.jpg">
<source media="(min-width: 765px)" srcset="wall.jpg">
<img src="plants.jpg" style="width:auto;">
</picture>