ouais en fait j'ai un autre problème. Je veux centrer un objet. Alors au début je faisais <div align=center></div> mais ca passe pas pour le validator XHTML
alors la jme suis dis que j'allais faire une classe tout conne:
.accueil
{
text-align:center;
}
mais ca le centre pas donc je voulais savoir comment faire ca.Et puis aussi sur toutes mes pages, meme les plus simples, le validator me dit ca :
Line 8, column 6: end tag for "head" which is not finished
</head>
Most likely, You nested tags and closed them in the wrong order. For example <p><em>...</p> is not acceptable, as <em> must be closed before <p>. Acceptable nesting is: <p><em>...</em></p>
Another possibility is that you used an element (e.g. 'ul') which requires a child element (e.g. 'li') that you did not include. Hence the parent element is "not finished", not complete.
alors que le code de ma page est :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="fr" xml:lang="fr">
<head>
<meta name="language" content="fr" />
<meta http-equiv="Content-type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" media="screen" href="style.css" />
</head>
<body>
<script type="text/javascript">
function popupcentree(page,largeur,hauteur,options)
{
var top=(screen.height-hauteur)/2;
var left=(screen.width-largeur)/2;
window.open(page,"pop","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}
</script>
<div class="premiere">
<a onclick="javascript:popupcentree('main.php',896,517);" class="index">:: Entrer ::</a></div>
</body>
</html>
qqn pourrait m'indiquer le probleme ca serait cool merci :)