Peter Bargh

words pictures sounds
May 30th, 2013 by Peter Bargh

The name attribute is obsolete

I got this error message using a name anchor tag when trying to validate a page in HTML5

The name attribute is obsolete. Consider putting an id attribute on the nearest container instead.

Here’s the code I had:

<a name=’anchor word’>

the solution is to replace name with id

<a id=’#anchor word’>

Leave a Reply

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