<link rel="canonical" href="url de la page"> en HTML5 valide ou nn?

WRInaute accro
Bonjour,

Il suffit de tester:
PHP:
<span class="syntaxdefault"><br /></span><span class="syntaxkeyword"><!</span><span class="syntaxdefault">doctype&nbsp;html</span><span class="syntaxkeyword">><br /><</span><span class="syntaxdefault">html&nbsp;lang</span><span class="syntaxkeyword">=</span><span class="syntaxstring">"en"</span><span class="syntaxkeyword">><br /><</span><span class="syntaxdefault">head</span><span class="syntaxkeyword">><br />&nbsp;&nbsp;&nbsp;&nbsp;<</span><span class="syntaxdefault">meta&nbsp;charset</span><span class="syntaxkeyword">=</span><span class="syntaxstring">"utf-8"</span><span class="syntaxkeyword">><br />&nbsp;&nbsp;&nbsp;&nbsp;<</span><span class="syntaxdefault">title</span><span class="syntaxkeyword">></span><span class="syntaxdefault">The&nbsp;HTML5&nbsp;Herald</span><span class="syntaxkeyword"></</span><span class="syntaxdefault">title</span><span class="syntaxkeyword">><br />&nbsp;&nbsp;&nbsp;&nbsp;<</span><span class="syntaxdefault">link&nbsp;rel</span><span class="syntaxkeyword">=</span><span class="syntaxstring">"canonical"&nbsp;</span><span class="syntaxdefault">href</span><span class="syntaxkeyword">=</span><span class="syntaxstring">"http://example.com/"&nbsp;</span><span class="syntaxkeyword">/><br /></</span><span class="syntaxdefault">head</span><span class="syntaxkeyword">><br /><</span><span class="syntaxdefault">body</span><span class="syntaxkeyword">><br /></span><span class="syntaxdefault">Foobar<br /></span><span class="syntaxkeyword"></</span><span class="syntaxdefault">body</span><span class="syntaxkeyword">><br /></</span><span class="syntaxdefault">html</span><span class="syntaxkeyword">><br />&nbsp;</span><span class="syntaxdefault"></span>

Sur http://validator.w3.org/#validate_by_input
 
Discussions similaires
Haut