gli apici li avevo invertiti per provare se era quello il problema, manon è così, mentre in style sono ' ' la / finale mi evita un altro error.
netwild
@netwild
Post creati da netwild
-
RE: problemi validazione
-
RE: problemi validazione
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>')
}
} -
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