Accessibility · Junior · Question 72 of 75

Why should a form have a real <form> and a submit button?

Show the answer

Correct answer: Enter submits it, and semantics work out of the box

Explanation

Pressing Enter in a field submits the form, which keyboard users rely on. A div with an onClick on a pseudo-button loses that.

Further reading

Problem with a question

Accessibility · Junior · question 72

Test yourself

Take the Accessibility · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz