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 correct HTML attribute value to disable autocomplete is autocomplete="Off". This prevents browsers from automatically filling form fields with previously entered data, which is important for sensitive fields like passwords or financial information.

AI explanation

Browsers historically respect the non-standard autocomplete="off" attribute on a form or input to prevent values (like passwords or sensitive fields) from being cached and auto-filled later. Setting it to an arbitrary or made-up value has no defined browser behavior and won't reliably suppress autocomplete, and no-store is a cache-control directive, not a valid autocomplete value.