CODE
<body id="lebund">
<a href="#contenu" id="acces">Accéder directement au contenu</a>
<ul id="menu">
<li><a href="#menu1">Intro</a>
....etc...
<a href="#contenu" id="acces">Accéder directement au contenu</a>
<ul id="menu">
<li><a href="#menu1">Intro</a>
....etc...
Mais le validateur me dit :
CITATION
Line 16, column 29: document type does not allow element "a" here; missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre", "address", "fieldset", "ins", "del" start-tag
<a href="#contenu" id="acces">Accéder directement au contenu</a>
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.
<a href="#contenu" id="acces">Accéder directement au contenu</a>
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.
Ben alors ! Je comprend pas.
Dois-je me résoudre à encadrer mon lien d'un div (ça marche ainsi...)?
