How to fix: Bad value <blank> for attribute action on element form: must be non-empty.

Most Likely Cause and Fix

Your markup contains a form with a blank action attribute.

Use

<form action="http://example.com/">

instead of

<form action="">

What This Error Means

Some element attributes can take pretty much any value, others can take only values of a certain type and others still can only take a value from a pre-defined set.

This error relates to the following usage in your markup:

<form action="">

The error is stating that, in this context, the attribute action on element form is not allowed to take the value <blank>

The validator is giving the reason: "must be non-empty."

How To Fix It

For form actions

Add a relevant value for the action attribute.

Use

<form action="http://example.com/" … >

instead of

<form action="" … >

Discuss, Comment and Improve

Did this help you? Can this page be improved? Let us know!

comments powered by Disqus