Multiple choice technology security

The correct way to disable autocomplete in the browser for certain forms is to ….

  1. Set autocomplete to “0”

  2. Set autocomplete to “Off”

  3. Set autocomplete to some other value

  4. Set autocomplete to “no-store”

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The HTML autocomplete attribute should be set to 'off' to disable the browser's autocomplete feature for sensitive form fields like passwords or credit card numbers. This prevents browsers from storing and suggesting potentially sensitive information. Values like '0' or 'no-store' are not standard - the correct value is 'off'. This is particularly important for preventing unintended data exposure on shared or public computers.

AI explanation

To answer this question, you need to understand how to disable autocomplete in a browser for certain forms. Let's go through each option to understand why it is correct or incorrect:

Option A) Set autocomplete to "0" - This option is incorrect because the correct attribute value to disable autocomplete is "off", not "0".

Option B) Set autocomplete to "Off" - This option is correct because setting the autocomplete attribute to "off" will disable autocomplete for the specific form.

Option C) Set autocomplete to some other value - This option is incorrect because the attribute value "off" is specifically used to disable autocomplete. Using any other value will not have the desired effect.

Option D) Set autocomplete to "no-store" - This option is incorrect because "no-store" is used to indicate that the browser should not store the form data in its cache, but it does not disable autocomplete.

The correct answer is B) Set autocomplete to "Off". This option is correct because setting the autocomplete attribute to "off" will effectively disable autocomplete for the specific form.