HTML5 link anchor must have an ID

According HTML5, using name inside the link is no longer valid, obsolete, deprecated.

From now on all your anchor links should have an id.

Obsolete

<a name="comment-1234"></a>Code language: HTML, XML (xml)

New HTML5 valid

<a id="comment-1234"></a>Code language: HTML, XML (xml)

More info:

http://www.w3.org/html/wg/drafts/html/master/browsers.html#scroll-to-fragid

Leave a Reply

Your email address will not be published. Required fields are marked *