How do you disable browser Autocomplete on web form field / input tag?

Problem:

You create a form for users in your page.  When a user starts to fill the form, by default, the browser shows options to fill in the field, based on earlier typed values. You need to disable this displaying option.

Solution:

Add the following code in the form tag.

The code:

<form action="demo_form.asp" autocomplete="off">

Explanation:

When the attribute “autocomplete” sets to “off”, it forbids the browser to display options.