[VE][64] Nesting of Option and Span

W3C Validation Service,

1. I don't understand what is causing this error in my
HTML and I don't know how to fix it.

2. The error message (see below) shown on page
http://validator.w3.org/check is not helpful. Can you
improve it?

Details:

Error message:

"Line 89, Column 40: document type does not allow 
element 'SPAN' here." (error 64)

Reported erroneous HTML line:

<option value="PayPal" ><span class=nobr>PayPal (pay 
from your bank account or credit card)</span></option>

Doctype:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 
Transitional//EN">

Comment:

What I want to do here is inhibit line wrapping within 
a displayed option value in a Select control.

David Spector

Received on Saturday, 24 November 2007 11:17:36 UTC