> ## Documentation Index
> Fetch the complete documentation index at: https://algolia.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change browser defaults for Vue InstantSearch

> Change the default properties for the HTML input element when using custom search boxes.

**If you don't use the built-in InstantSearch or Autocomplete components to render a search box, you need to change the default properties of the HTML input element** to turn off the default autocomplete behavior of the browser.

A classic search HTML input looks like:

```html HTML theme={"system"}
<input type="text" id="search" />
```

When a user starts typing into this input, the browser may use its default search-as-you-type behavior, which interferes with the custom search box. This guide describes how to avoid this behavior.

## Updating input attributes

Set these attributes on the HTML input element to turn off the browser's default behavior:

```html HTML theme={"system"}
<input type="text"
       id="search"
       autocomplete="off"
       autocorrect="off"
       autocapitalize="none"
       spellcheck="false" />
```

<Note>
  In Chrome, `autocomplete="off"` doesn't work.
  In Chrome, you can [turn off autocomplete](https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion#Disabling_autocompletion) by setting the attribute to an invalid value like `autocomplete="nope"`.
  The same solution doesn't work in Firefox (it disregards the invalid value and reverts to the default autocompletion behavior).
</Note>

## More information about input attributes

For more information, see these MDN references:

{/* vale Vale.Spelling = NO */}

* [How to turn autocomplete off](https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion)
* [Autocomplete](https://developer.mozilla.org/en/docs/Web/HTML/Element/Input#attr-autocomplete)
* [Autocorrect](https://developer.mozilla.org/en/docs/Web/HTML/Element/Input#attr-autocorrect)
* [Autocapitalize](https://developer.mozilla.org/en/docs/Web/HTML/Element/Input#attr-autocapitalize)
* [Spellcheck](https://developer.mozilla.org/en/docs/Web/HTML/Element/Input#attr-spellcheck)
