{"id":8,"date":"2012-02-20T08:25:30","date_gmt":"2012-02-20T08:25:30","guid":{"rendered":"http:\/\/www.w3.org\/community\/html5spec\/?p=8"},"modified":"2012-02-20T08:29:34","modified_gmt":"2012-02-20T08:29:34","slug":"a-unified-naming-attribute-for-everything","status":"publish","type":"post","link":"https:\/\/www.w3.org\/community\/html5spec\/2012\/02\/20\/a-unified-naming-attribute-for-everything\/","title":{"rendered":"A Unified Naming Attribute for Everything"},"content":{"rendered":"<p>Hi all,<\/p>\n<p>I&#8217;m glad to participate with the first post in this group \ud83d\ude42<\/p>\n<p>Has anyone thought of using <code>label=\"\"<\/code> as a unified naming attribute; as an alternative to all naming tags and attributes:<\/p>\n<p><code>&lt;caption&gt;<\/code> , <code>&lt;label&gt;<\/code>, <code>&lt;legend&gt;<\/code>, <code>alt=\"\"<\/code>, <code>for=\"\"<\/code>, <code>title=\"\"<\/code>, <code>summary=\"\"<\/code>.<\/p>\n<p><code>title=\"\"<\/code> attribute could be deprecated in favor of a CSS attribute called <code>title:<\/code> with the following values:<\/p>\n<pre>{ title: attr(label) | attr(accesskey) | attr(label) attr(accesskey) | none }<\/pre>\n<p>The typical way for <code>label=\"\"<\/code> presentation is to use <code>:before<\/code> and <code>:after<\/code> pseudo elements; beside the <code>title:<\/code> CSS attribute.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi all, I&#8217;m glad to participate with the first post in this group \ud83d\ude42 Has anyone thought of using label=&#8221;&#8221; as a unified naming attribute; as an alternative to all naming tags and attributes: &lt;caption&gt; , &lt;label&gt;, &lt;legend&gt;, alt=&#8221;&#8221;, for=&#8221;&#8221;, &hellip; <a href=\"https:\/\/www.w3.org\/community\/html5spec\/2012\/02\/20\/a-unified-naming-attribute-for-everything\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":891,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_s2mail":"yes","footnotes":""},"categories":[1],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/users\/891"}],"replies":[{"embeddable":true,"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":7,"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":15,"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/posts\/8\/revisions\/15"}],"wp:attachment":[{"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.w3.org\/community\/html5spec\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}