HTML novalidate Attribute

Beginner
5 min read
Updated: Oct 2026
3 examples
Live preview

Definition and Usage

The novalidate attribute is a boolean flag on a <form>. When present, the browser skips HTML constraint validation on submit — so required, type checks, pattern, min/max, and similar rules do not block submission.

Use it when you validate in JavaScript yourself. If only one button should skip checks (for example Save draft), prefer formnovalidate on that control instead.

Baseline · Widely available.

Not deprecated and not experimental. Stable across modern browsers since about July 2015.

Client-only skip.

novalidate does not replace server-side validation. Always check data on the server before trusting it.

HTML Syntax

syntax.html
<form  novalidate>…</form>

Presence alone enables it. Empty string (novalidate="") is also valid. In JavaScript: form.noValidate.

Attribute Values

Boolean attribute — no meaningful keyword list beyond presence:

FormDescriptionTry it
novalidateSkip constraint validation for every submitTry it
novalidate=""Same meaning — empty value is allowedTry it
Attribute omittedNormal interactive validation on submitTry it

Live Preview

Toggle novalidate on the form, leave the email empty, then submit.

Email is required. With novalidate on, empty submit is allowed; with it off, the browser blocks.

Demo form

novalidate present — browser skips checks

HTML Examples

Short, copy-ready snippets. Use Try It Yourself for a live editor.

Example 1 — Skip Validation on the Whole Form

Empty required fields can still submit when novalidate is on the form.

HTML
<form action="/signup" method="post" novalidate>
  <label for="email">Email:</label>
  <input type="email" id="email" name="email" required>

  <button type="submit">Send</button>
</form>
Try It Yourself

How It Works

  1. novalidate on form disables interactive constraint checks for every submit.
  2. required remains in markup but does not stop this submit path.
  3. You own validation — typically in script and always on the server.
  4. Label clearly so users know client HTML checks are off.

Example 2 — novalidate=""

Empty string is the same boolean “on” as a bare attribute.

HTML
<form action="/contact" method="post" novalidate="">
  <label for="name">Name:</label>
  <input type="text" id="name" name="name" required>

  <button type="submit">Contact</button>
</form>
Try It Yourself

How It Works

  1. Boolean rules. Presence means true; ="" is still present.
  2. Same effect as writing bare novalidate.
  3. JS mirror: form.noValidate === true.
  4. Prefer bare form in most tutorials for readability.

Example 3 — With vs Without novalidate

Side-by-side: one form validates; the other skips.

HTML
<!-- Validates -->
<form action="/a" method="post">
  <label for="a">Email:</label>
  <input type="email" id="a" name="email" required>
  <button type="submit">Validated submit</button>
</form>

<!-- Skips browser checks -->
<form action="/b" method="post" novalidate>
  <label for="b">Email:</label>
  <input type="email" id="b" name="email" required>
  <button type="submit">Novalidate submit</button>
</form>
Try It Yourself

How It Works

  1. First form blocks empty/invalid email on submit.
  2. Second form has novalidate, so the browser does not block.
  3. Per-button alternative: keep validation on the form and use formnovalidate on one control.
  4. Custom UI: if you skip, show your own error messages in script.

Edge Cases & Pitfalls

Most issues come from treating this as security or confusing it with per-button skips.

security

Not a server bypass

Attackers can skip client checks anyway. Validate every request on the server.

scope

Whole form, every submit

All submit controls skip interactive validation. Use formnovalidate if only one button should skip.

api

submit() vs button click

Calling form.submit() in script also skips interactive validation. Prefer clicking a submit control when you want the browser UI to run.

script

IDL name is noValidate

In JavaScript: form.noValidate = true or false.

ux

Replace what you remove

If you turn off built-in checks, provide clear custom errors so users still know what to fix.

Browser Support

novalidate is an HTML attribute for the form element in the browser. It is not a Node.js, Deno, or Bun API.

✓ Baseline · Widely available

novalidate

Widely available since about July 2015. Chrome, Firefox, Safari, Edge, and Opera support skipping constraint validation on form submit.

97% Global support (approx.)
Google Chrome 10+
Full support
Mozilla Firefox 4+
Full support
Apple Safari 10.1+
Full support
Microsoft Edge 12+
Full support
Opera 15+
Full support
Samsung Internet Modern
Full support
Internet Explorer 10+
Supported
novalidate Widely supported

Bottom line: Safe to use when you own client validation in script. Keep a validating path or custom errors for users.

Key Takeaways

  • Role: skip HTML constraint validation for the whole form.
  • Boolean: presence means on; omit to keep validation.
  • vs formnovalidate: whole-form skip vs one-button skip.
  • Security: still validate on the server.

One line: novalidate turns off browser constraint checks for every submit on that form.

Frequently Asked Questions

On a form element, novalidate is a boolean flag that tells the browser not to run constraint validation when the form is submitted. Required, type, pattern, min, max, and similar checks are skipped for interactive submit.
Yes. Its presence means true. Write novalidate or novalidate="" — you do not need a value like true/false.
When you handle validation yourself in JavaScript, or you want every submit path to skip built-in checks. Prefer formnovalidate on one button if only drafts should skip.
No. It only skips built-in HTML constraint validation in the browser. Always validate again on the server.
novalidate on the form turns off validation for every submit. formnovalidate turns it off only when that specific submit control is used.
Use the HTMLFormElement.noValidate property, for example form.noValidate = true.

Next: onabort

Handle media load abort events on HTML elements.

onabort tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

8 people found this page helpful