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 sign up Form (Responsive, html, sass, javascript)

@SouleymaneSy7

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

Solution retrospective


Hello, This is my solution for the Intro Components with sign up form.

Made This with:

  • html
  • sass
  • javascript
  • RegEx

It's my first Try with the RegEx (Regular expressions) for the form validation. Hope it do the work!

Any review and feedback are welcome!

Community feedback

Vanza Setia 27,795

@vanzasetia

Posted

Hello, Souleymane Sy! 👋

Wrapping the <input> with <label> is not enough. You should provide a text content for the <input> to have a proper label or accessible name.

I recommend using aria-label attribute to label the <input> since there is no visible label on the design.

I recommend making the error icon as the background image of the <input> element. If you want to keep using <img> element then it should not have alternative text—empty alternative text.

The error message should be wrapped by a meaningful element, a paragraph element to be specific. There should not be text in <span> and <div> alone.

Also, the error message should be connected with the <input> by using aria-describedby attribute. Then, it should be a live region so that it gets announced by screen readers. To do that, you should add aria-live attribute.

You need to leave <p> empty at first. Then, populate it with the error message using JavaScript.

For detail information, you can read the following article — How To Create Accessible Form with Boring Design? - CodeNewbie Community 🌱

You should specify the type of the button, <button class="form--btn">. <button> element must always have type attribute to prevent unexpected behavior. Source: Checklist - The A11Y Project #use-the-button-element-for-buttons

You should avoid using JavaScript to add styling (unless you have no other option). JavaScript allows you to change the CSS code using the style property. But, to make debugging easier and improve code maintainability, it’s best to avoid it. Use CSS classes instead.

I hope you find this useful. Happy coding! 😄

Marked as helpful

1

@SouleymaneSy7

Posted

@vanzasetia Thanks for your tips. I am going to try this!

0
Vanza Setia 27,795

@vanzasetia

Posted

@SouleymaneSy7

You are welcome! Good luck with it! 👍

1

@Ali-Sadygov

Posted

Super

1

@SouleymaneSy7

Posted

@Ali-Sadygov thanks you

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