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 form using flex-box

Dipesh 430

@Dipesh-sapkota1

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


What challenges did you encounter, and how did you overcome them?

Customizing default behavior of form

What specific areas of your project would you like help with?

I want to improve responsiveness of overall site.

Community feedback

@RanitManik

Posted

Your solution looks legitimate. I have reviewed your code, and here are some suggestions from me:

  1. Specify Image Dimensions:

    • Always set both the height and width attributes for images. This practice ensures that the space required for the image is reserved when the page loads, preventing layout shifts. Your success page is currently experiencing layout shifts because these attributes are not specified. For more details, refer to this article.
  2. Display User Email:

    • On the success page, ensure you display the user's previously input email. Currently, the email shown is always [email protected], which is incorrect.
  3. Alt Text for Images:

    • Avoid using alt text for non-decorative images. In this challenge, all images are non-decorative, so you should leave the alt attribute blank, like this: <img src="./assets/image.jpg" alt="">. For more information on this best practice, watch this video.
  • I hope you find my feedback helpful. Please mark it as helpful if you do.

Marked as helpful

0

Dipesh 430

@Dipesh-sapkota1

Posted

@RanitManik Thank you for your feedback.I have another question. I've been using vanilla CSS for a while and have a basic understanding of responsive design. I know there's more to learn, but based on my project, should I focus on improving my skills with vanilla CSS, or should I start using frameworks?

0

@RanitManik

Posted

@Dipesh-sapkota1 I think you should start using CSS frameworks as they are like CSS on steroids. However, under the hood, they are essentially just CSS. I suggest you begin using SCSS/SASS and then transition to Tailwind CSS.

From Your code I think you are more than ready.

0

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