![]() |
![]() |
|
| Condividi questo contenuto nei Social Network: |
|
Tweet |
|
|
|
Ti stiamo aspettando: Registrati subito e gratis. Entra a far parte di una delle comunità più attive in Italia. Se hai dimenticato i tuoi dati li puoi recuperare subito. |
||||
|
|||||||||
Hey Amico Visitatore, Condividi con noi le tue idee e la tua conoscenza Aprendo una nuova discussione nella sezione W3C - Usabilità - Accessibilità - Qualità |
|
|
LinkBack | Strumenti di discussione |
|
|
#1 (permalink) |
|
User Newbie
Data di registrazione: Nov 2006
Messaggi: 3
|
problemi validazione
salve,
qualcuno sa come posso risolvere questo problemino che nnon mi consente la validazione? Error Line 407 column 63: document type does not allow element "a" here....'#' onclick='ImgDest();return(false)'><img src='http://www The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed). One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error). Error Line 412 column 50: document type does not allow element "a" here....ite('<a href="http://www.xxxxx.it"><img src="http://www il pezzo di codice in questione è questo: { document.write("<a href='#' onclick='ImgDest();return(false)'><img src='http://www.xxxxx.net/loghi/xxxxx.jpg' border='0' alt='click to go web link' name='defil' style=''/></a>"); defilimg() } else { document.write('<a href="http://www.xxxxxx.it"><img src="http://www.xxxx.net/loghi/xxxxx.jpg" border="0" alt="click to go web link" /></a>') } ciao Mauro |
|
|
|
|
|
|
|
#3 (permalink) |
|
User Newbie
Data di registrazione: Nov 2006
Messaggi: 3
|
il codice javascript è questo:
function StartAnim() { if (document.images) { document.write("<a href='#' onclick='ImgDest();return(false)'><img src='http://www.xxxxx.net/loghi/xxxxx.jpg' border='0' alt='click to go web link' name='defil' style=''/></a>"); defilimg() } else { document.write('<a href="http://xxxxxxx.it"><img src="http://www.xxxxx.net/loghi/xxxxxx.jpg" border="0" alt="click to go web link" /></a>') } } |
|
|
|
|
|
#4 (permalink) |
|
Esperto
|
Il problema sta negli apici che non sono uniformi (un po' ' e un po' " che fanno casino).
Il problema sta anche nello style cha apri, non chiudi, e fai seguire subito dopo da / Risolvi queste prime 2 questioni e poi vediamo ![]() |
|
__________________
Massimiliano Navacchia aka Hogudo |
|
|
|
|
| Tags: validazione |
| Strumenti di discussione | |
|
|