This is a solution to the Advice generator app challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
I learnt to use the picture tag for displaying different images in certain viewports. This is awesome for building responsive layouts!
<picture class="block mt-3 my-6">
<source srcset="/pattern-divider-desktop.svg" media="(min-width: 640px)" />
<source srcset="/pattern-divider-mobile.svg" media="(max-width: 640px)" />
<img src="/pattern-divider-mobile.svg" alt="" />
</picture>
I just discovered the picture tag and how awesome it is; I feel like learning more about HTML tags and HTML in general would be great!
Thanks to Ivan I discovered the picture tag.