Peter Bargh

words pictures sounds

Archive for the ‘Validation errors’ Category

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

May 30th, 2013 by Peter Bargh

Quote ‘ in attribute name error

Quote ‘ in attribute name. Probable cause: Matching quote missing somewhere earlier.

I got the above error when validating a html5 page.

The problem was solved by changing

<meta charset=”UTF-8″ >

to add a closing backspace :

<meta charset=”UTF-8″ />

Hope that helps others with the same problems