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.


<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:

About Ricard Torres

Senior Front-end Software Engineer at Netcentric, from Barcelona, Haidong Gumdo Instructor (korean martial art of the sword), street photographer, travel lover, TV addict, Boston Red Sox fan, and privacy advocate.

@ricard_dev @ricard_dev

📝 Blog 🎙 Podcast

Leave a Reply

Add <code> Some Code </code> if you need to.