{"id":2574,"date":"2013-05-30T17:56:00","date_gmt":"2013-05-30T17:56:00","guid":{"rendered":"http:\/\/www.bargh.co.uk\/blog\/?p=1803"},"modified":"2013-05-30T17:56:00","modified_gmt":"2013-05-30T17:56:00","slug":"the-name-attribute-is-obsolete","status":"publish","type":"post","link":"https:\/\/bargh.co.uk\/blog\/the-name-attribute-is-obsolete\/","title":{"rendered":"The name attribute is obsolete"},"content":{"rendered":"<p>I got this error message using a name anchor tag when trying to validate a page in HTML5<\/p>\n<blockquote><p>The name attribute is obsolete. Consider putting an id attribute on the nearest container instead.<\/p><\/blockquote>\n<p>Here&#8217;s the code I had:<\/p>\n<p>&lt;a name=&#8217;anchor word&#8217;&gt;<\/p>\n<p>the solution is to replace name with id<\/p>\n<p>&lt;a id=&#8217;#anchor word&#8217;&gt;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;s the code I had: &lt;a name=&#8217;anchor word&#8217;&gt; the solution is to replace name with id &lt;a id=&#8217;#anchor word&#8217;&gt;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1301],"tags":[1352,1725,1732,1884,2249],"class_list":["post-2574","post","type-post","status-publish","format-standard","hentry","category-validation-errors","tag-attribute","tag-html5","tag-id","tag-name","tag-validation"],"_links":{"self":[{"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=2574"}],"version-history":[{"count":0,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2574\/revisions"}],"wp:attachment":[{"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=2574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=2574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=2574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}