Interview Question

What is autocomplete in forms?

Autocomplete helps browsers fill forms correctly.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

The `autocomplete` attribute tells the browser what saved value may fill a field. β€’ It is written inside an element’s opening tag. β€’ The HTML Standard limits which elements may use it and which values are valid. β€’ Browsers apply the attribute when they process the element or the resource it controls.

💡 Simple Example

<input name="email" autocomplete="email">

⚡ Quick Revision

Autocomplete helps browsers fill forms correctly.