To apply auto complete feature in input text field DataList is used which is a new HTML5 tag shipped.
HTML5 DataList tag Introduction
As a part of HTML5 specification <datalist> tag has launched. Bu using this tab we can define a list of data and can be used to show list for an input box.
I used DataList tag to define the list of categories.
Note: With the input box list attribute DataList id attribute must match.