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

intro-component-with-signup-form-master

@Deep-910

Desktop design screenshot for the Intro component with sign-up form coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Community feedback

@sliyarli

Posted

Here's a review of your code to help you improve your coding skills:

HTML:

  1. You have a well-structured HTML document with appropriate use of semantic tags.
  2. You've included meta tags for character set and viewport settings, which is good for responsive design.
  3. The usage of external CSS and JavaScript files is a good practice for code organization and maintainability.

CSS:

  1. You've used custom properties (CSS variables) effectively for defining colors and font sizes. This allows for easy customization.
  2. Your CSS follows a clear naming convention and is organized logically.
  3. Media queries have been used to make the layout responsive, which is great for ensuring your site looks good on different devices.

JavaScript:

  1. You've implemented input validation using JavaScript, which is an essential feature for forms.
  2. Your event listener for input validation is well-structured and efficient.
  3. The use of getElementsByClassName to select elements is correct, but you could also consider using querySelector for more flexibility.
  4. You've provided meaningful class names and IDs for your elements, making it easier to work with them in JavaScript.

Overall, your code demonstrates good coding practices. To further enhance your coding skills:

  1. Consider adding comments to your JavaScript code to explain the purpose of functions and code blocks.
  2. You could optimize your CSS for better performance by combining styles for similar elements.
  3. Explore more advanced JavaScript techniques and libraries to add interactivity and enhance user experience on your projects.
  4. Test your code thoroughly, especially when dealing with forms and user input, to ensure it behaves as expected.

Keep up the good work, and continue practicing and learning to become an even better developer!

Marked as helpful

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