Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

responsive newsletter signup form using vue3 and scss

AMK 140

@ahmed322

Desktop design screenshot for the Newsletter sign-up form with success message coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


is it better to use the image as an HTML element or make an element and give it a background image using CSS

Community feedback

@Danii215

Posted

since the image is different for mobile and for desktop (responsive design), the better option would be a picture tag (which has an img inside it):

https://www.w3schools.com/tags/tag_picture.asp

other than that, this article probably can help you decide between an img and a background-image:

https://www.w3docs.com/snippets/html/when-to-use-html-img-tag-and-css-background-image-property.html

1

Please log in to post a comment

Log in with GitHub
Discord logo

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord