Salve a tutti.
Ho provato a validare in w3c questa semplice pagina di prova:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<meta name="generator" content="Adobe GoLive" />
<title>dd</title>
<link href="../../css/posgallery.css" rel="stylesheet" type="text/css" media="all"/>
<script language="javascript" type="text/javascript">
var before = "a";
</script>
</head>
<body>
<div align="center">
<script type="text/javascript">document.write("[img]../../immagini/gallery/before/1" + before + ".jpg[/img]");</script>
</div>
</body>
</html>
....ma ottengo qusto errore
document type does not allow element "img" here.
.../before/1" + before + ".jpg' alt='' />");</script>