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

Tailwind CSS

@Mishywayu

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


I used HTML, Tailwindcss, JavaScript, and deployed it on Netlify. Reviews are highly appreciated

Community feedback

P

@KrishnaVishwakarma1595

Posted

Hey, @Mishywayu

Congrats on completing the challenge.

I've got a few points to mention -

  • While working with the Forms we should use <label> element for input labels. For example you can use <label > tag instead of <h2> tag like this -
<label for="email-input" class="font-bold">Email address</label >
<p class="hidden text-red-500 text-sm text-right font-semibold" id="invalid-msg">Valid email required</p>
 <input type="email" name="" placeholder="[email protected]" class="mt-2 p-3 w-full border border-slate-500 rounded-lg cursor-pointer" id="email-input"/>

So, we can focus the input automatically by clicking on the label. If there isn't any use case to define a label like this just the input field with a placeholder, in that case too we should define the label using the aria-label attribute.

  • You can start using HTML5 Semantic elements

  • There are some responsiveness glitches for tablet screens which makes the design bit unresponsive. What you can do is make the main container width: 100%` and some padding around the body.

I hope these points will help you. Nice solution.

Happy Coding

Marked as helpful

0

@Mishywayu

Posted

Hello @KrishnaVishwakarma1595

This is very helpful. Thank you 👍

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