You are creating an HTML5 form. You want the form to automatically suggest and complete input as the user enters. Which code will correctly add this feature?

Prepare for the uCertify CIW Advanced HTML5 and CSS3 Specialist Exam. Dive into essential topics with flashcards and multiple-choice questions. Enhance your understanding with hints and explanations for each question. Pass your exam confidently!

Multiple Choice

You are creating an HTML5 form. You want the form to automatically suggest and complete input as the user enters. Which code will correctly add this feature?

Autofill suggestions are controlled by the autocomplete attribute. When you set autocomplete to on on a form, the browser is allowed to offer and fill in previously entered values for the inputs inside that form as the user types. The code snippet shown with autocomplete="on" correctly enables this behavior.

The other snippets fail for specific reasons: autocomplete="off" would prevent suggestions; autocomplete="false" uses an invalid value for this attribute; autocomlete="on" has a misspelling, so it won't be recognized. You could also apply autocomplete to individual inputs for more granular control, but enabling it at the form level is the standard way to activate the feature across the form.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy