validation <div> et <a> w3c
Bonjour,
Je passe mon site en xhtml, seulement voila, je n'arrive pas a valider
Code:
<div id="kiki" style="border=0;">
non valide, que faire (pour pouvoir faire un style) ?
//exemple d'erreur
Citation:
document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
…ass="MenuCat" style="color:#8CC63F;">Accueil</div></a></div><br/><div class=
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
Puis j'ai des souchy avec mes attributs de ma balise <a>....
si je fais une fct str_replace pour les caractere & , ' , et espace alors meme en remplacant les caracteres par les codage html (ex : & ) alors toujours la meme erreur :
Citation:
character " " is not allowed in the value of attribute "name"
../lien.php" name="La cave et ses accessoires" t
It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit.
Des idees pour pouvoir valider ????
Merci,
Guigo