Ciao a tutti
Ho un problemino con l'ottimizzazione di un modulo con W3C vi spiego..
ho creato uno script per form che se si klikka sopra l'area di testo con il maouse il suo valore sparisce ( non so se mi sono spiegato bene )... per farlo ho usato questo script

codice:
<script>
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 
</script>
e nel inpunt ho messo

<input name="mail" type="text" class="nero_10px" onFocus=clearText(this) value="Inserisci la tua E-Mail" size="25">

ora facendo la convalida con il W3C mi dice

Line 125, column 80: an attribute value must be a literal unless it contains only name characters

..." class="nero_10px" onFocus=clearText(this) value="Inserisci il tuo nome" siz

You have used a character that is not considered a "name character" in an attribute value. Which characters are considered "name characters" varies between the different document types, but a good rule of thumb is that unless the value contains only lower or upper case letters in the range a-z you must put quotation marks around the value. In fact, unless you have extreme file size requirements it is a very very good idea to always put quote marks around your attribute values. It is never wrong to do so, and very often it is absolutely necessary.
ora... sapete come potrei risolvere? Se magari conoscete altri scirpt che non causino questo errore fatemi sapere
ciao e grazie