Web

Validation

Validation is the check that runs before something is accepted. On a form it catches a mistyped address. In markup it catches errors Google would ignore.

Also called form validation, input validation, markup validation

SiiteWritten by SiiteUpdated September 14, 2026

Validation is the check that runs before something is accepted. On a contact form it decides whether an entry is allowed through. In markup it decides whether a search engine can read what you wrote. The word covers both, the two are unrelated in mechanism, and both get blamed for problems they cannot prevent.

In short

  • It checks shape, never truth.
  • On a form, check when somebody leaves a field, not while they type.
  • Strict rules on phone numbers and names reject real customers.
  • Valid markup means readable, not eligible for anything.

Two jobs under one word

The two meanings share nothing except the idea of a check before acceptance.

Form validation happens in front of a person. It decides whether the thing they typed is allowed, and says so immediately. Its audience is a customer with limited patience, and every rule is a chance to refuse somebody who was trying to buy from you.

Markup validation happens out of sight. It decides whether the structured data on a page is well formed enough for a machine to parse. Its audience is software, nobody is inconvenienced by a failure, and the cost is silent: the page simply never gets considered for anything the markup was meant to unlock.

Both check shape rather than truth. That limit is the single most useful thing to understand about either.

Form validation, and when it should fire

Timing decides whether validation feels helpful or hostile.

Checking while somebody is still typing means marking an email address as invalid halfway through entering it, which is technically correct and reads as being nagged by software. Checking when they leave the field is the right moment: they have finished, the feedback is timely, and correcting it costs one tap.

Then check everything again when the form is submitted. The first pass is for the person and the second is for the data, because anything running in a browser can be bypassed and anything arriving at your server should be checked there regardless.

Error messages deserve the same care as the rules. Say what is wrong and how to fix it, beside the field it belongs to, in plain words. A red border with no explanation, or a single message at the top of a long form saying something is invalid, leaves somebody hunting for the problem, and a proportion will stop hunting.

Being strict is not the same as being careful

The most expensive validation faults are rules that reject real people.

  • Phone numbers. A Philippine mobile arrives as 09, as +63, with spaces, with dashes, and in brackets. All are one number. Accept the lot, strip the punctuation yourself, and store one format.
  • Names. Apostrophes, hyphens, several words, one word, accented letters. Any rule beyond non-empty will refuse somebody, and Filipino naming conventions break the usual assumptions about first and family names.
  • Addresses. Unit numbers, subdivision names, barangays, landmarks. Free text and a wide box beat a rigid set of fields.
  • Required fields. The strictest rule of all. Each one is a question somebody has to answer before you will speak to them, which is covered under friction.

The test is simple: what does this rule protect me from, and what does it cost when it is wrong. A rule protecting you from a typing mistake, at the cost of refusing one real customer a month, is a bad trade.

Formatting as somebody types is the friendly middle ground. A phone field that inserts its own spacing, or a card field that groups digits in fours, accepts whatever arrives and makes it tidy without ever telling anybody they are wrong.

What validation cannot promise

An address that passes every check may still be fictional, and frequently is.

Validation confirms that something has the right shape. It cannot confirm that the mailbox exists, that anybody reads it, or that the person entering it meant to give you theirs. That is verification, which means sending something and asking for a click, and it is the only thing that proves an address is real.

The same applies to markup. A valid block of JSON-LD is one a machine can parse. Whether it describes the page honestly is a separate question, and describing something the page does not show is the fastest route to having the markup ignored across the whole site.

So treat validation as removing a category of obvious failure, not as assurance. Bounced addresses, spam submissions and ignored markup all survive it.

Markup validation in practice

Two tools answer two different questions and both are free.

A schema validator reports whether the code parses and uses the vocabulary correctly. Google’s own rich result test reports something more useful: whether a page is eligible for a particular result, which depends on the page type, the content and Google’s current appetite for showing that result at all.

The second question is the one worth asking, and the answer is often disappointing in a way that has nothing to do with your code. Valid markup is the entry requirement. Eligibility is Google’s decision, and on many kinds of site the honest expectation is that nothing visible will change.

Run the check when the markup is first added, and again after any platform update, because plugins rewrite this quietly.

Keep the two kinds of message separate when reading a report. A validator complaining about a missing recommended field is saying the markup could be richer. A validator reporting an error is saying a machine cannot read it at all, and only the second is urgent.

Words you will hear

  • Validation. A check on the shape of something before it is accepted.
  • Verification. Proof that something is real and belongs to the person.
  • Client-side. Checked in the browser, for the person’s benefit, and bypassable.
  • Server-side. Checked after submission, where the check actually counts.
  • Required field. One the form refuses to submit without.
  • Schema validator. A tool reporting whether structured data parses.
  • Rich result test. Google’s tool reporting whether a page is eligible for a particular result.

Fill in your own form with a phone number written the way your customers write it. If the form argues with you, it has been arguing with them.

Questions we get

More about validation

When should a form tell somebody they made a mistake?

After they leave the field, not while they are still typing in it. Marking an address as wrong halfway through entering it is technically accurate and reads as nagging. Check when they move on, and check the whole form again when they press send.

Can validation actually confirm an email address exists?

No. It can confirm the address has the right shape, and nothing more. Whether anybody reads it is unknowable until you send something, which is why a hard bounce is a separate problem handled after the fact rather than at the form.

How strict should we be about phone numbers?

Loose, and then tidy the result yourself. Philippine numbers get written with a leading zero, with the country code, with spaces, with dashes and in brackets, and all of those are the same number. A form that rejects four of the five formats is rejecting customers over punctuation.

What about names?

Accept almost anything. Rules that demand two words, reject apostrophes or hyphens, or impose a length limit will refuse real names, including a great many Filipino ones. A name field needs to be non-empty and little else.

What does markup validation check?

Whether the structured data on a page parses and uses the vocabulary correctly. It answers whether Google can read what you wrote, which is a lower bar than whether Google will act on it. Valid markup is a requirement rather than an achievement.

Our structured data is valid but we get no rich result. Why?

Because validity and eligibility are different questions. Valid means the code is well formed. Eligible means the page type, the content and Google's current appetite for that result all align, and none of that is under your control. Valid markup is the entry requirement, not the prize.

Is validation the same as verification?

No, and the two get swapped constantly. Validation checks the shape of something, such as whether an address looks like an address. Verification checks that it is real and belongs to the person, usually by sending a message and asking them to click. Only verification proves anything.

Do it yourself

Guides on the same topic

Free step by step guides for owners doing the work themselves. No sign up and no email required.

Want this handled for you?

Let us take validation off your desk.

The guides and these pages are yours to use for nothing. When you would rather have the work done properly than done by you, tell us what is already in place and we will put a proposal together.

or call +63 2 5323 8174