Hello
Don't use role on divs! Use the correct element. There's no reason why you can't use main and footer (for attribution) on this.
Similarly, don't use the old deprecated input type submit when you can use a button element.
I don't think the button is the right choice for the purple box. What is it you expect that to do? That is just intro text for the form, a paragraph
For this form there is a few essential changes needed, as with every form you do in future
- inputs always need labels. Sr only text with aria labelledby would be a good choice, or you could use aria-label but be aware that won't always translate for users speaking other languages
- optional but recommended - make the error icons into background images on the input. General rule is don't clutter the html with elements that don't need to be there
- every error message element needs an aria live attribute
- every error message needs a unique id
- every input with validation needs a required attribute
- every input with validation needs an aria describedby attribute pointing to the ID of its error message
- the form needs a novalidate attribute as you are doing custom validation here
Marked as helpful
@JesseOlisa
Posted
Hello, Grace
Thank you so much for the feedback. I have learnt a lot from this.
I really appreciate.