Interview Question

What is novalidate?

Novalidate skips native form validation.

💡 Concept ✅ Quick Revision 🌐 HTML

Answer

The `novalidate` attribute turns off the browser’s built-in validation for a form submission. • 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

<form action="/subscribe" method="post" novalidate><label for="email">Email</label><input id="email" name="email" type="email"><button type="submit">Subscribe</button></form>

⚡ Quick Revision

Novalidate skips native form validation.