{"id":25935,"date":"2010-04-25T20:37:24","date_gmt":"2010-04-25T12:37:24","guid":{"rendered":"http:\/\/www.yankay.com\/?p=25935"},"modified":"2010-04-25T20:37:24","modified_gmt":"2010-04-25T12:37:24","slug":"html5%e4%b8%ad%e7%9a%84%e5%be%ae%e6%95%b0%e6%8d%ae","status":"publish","type":"post","link":"http:\/\/yankay.com\/html5%e4%b8%ad%e7%9a%84%e5%be%ae%e6%95%b0%e6%8d%ae\/","title":{"rendered":"HTML5\u4e2d\u7684\u5fae\u6570\u636e"},"content":{"rendered":"

\u7f18\u8d77<\/h4>\n

HTML4,Html5,XHtml1,XHtml1.1,XHtml2….\u90fd\u662fW3C\u7684\u4ea7\u54c1\uff0c\u4e71\u4e71\u7684\u4e00\u56e2\u7cdf\u3002\u6709\u4e00\u7bc7\u6f2b\u753b\u300a\u6807\u8bb0\u8bed\u8a00\u4e4b\u4e71 \u201dxhtml2\u2033vs\u201cxhtml1\u201dvs\u201chtml5\u201d<\/a>\u300b\uff0c\u6f84\u6e05\u4e86\u4e4b\u95f4\u7684\u5173\u7cfb\u3002\u57fa\u672c\u4e0a\u662f\u5c06XHtml2\u5df2\u6b7b\uff0c\u5929\u4e0b\u662fHtml5\u548cXHtml1\u7684\u3002<\/p>\n

\u5fae\u6570\u636e<\/a><\/h4>\n

\u5fae\u683c\u5f0f<\/a>\u662f\u8ba9\u7f51\u9875\u901a\u8fc7\u8bed\u610f\u76f8\u5173\u8ba9\u5185\u5bb9\u4eba\u673a\u53ef\u8bfb\u7684\u4e00\u79cd\u65b9\u5f0f\u3002Wordpress\u91cc\u5185\u7f6e\u7684XFN\u5c31\u53ef\u4ee5\u7b97\u4f5c\u4e00\u79cd\u5fae\u683c\u5f0f\u3002\u90a3\u4e48\u4ec0\u4e48\u662f\u5fae\u6570\u636e\u5462\uff1f<\/p>\n

HTML5\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6613\u7684\u65b9\u5f0f\u5c06\u8bed\u4e49\u6807\u7b7e\u878d\u5165\u5176\u4e2d\uff0c\u8fd9\u9879\u529f\u80fd\u5c31\u662f\u5fae\u6570\u636e(Microdata)\u3002\u6839\u636eW3c\u4e09\u6708\u4efd\u7684\u4f1a\u8bae\uff0c\u5fae\u6570\u636e\u7684\u5b58\u5728\u5c31\u662f\u4e3a\u4e86\u586b\u8865\u5fae\u683c\u5f0f\u5728\u5e94\u5bf9\u7c7b\u4f3cRdfa\u8fd9\u79cd\u6bd4\u8f83\u590d\u6742\u7684\u7cfb\u7edf\u65f6\u7684\u4e0d\u8db3\u3002<\/p>\n

\u793a\u4f8b(Html5\u672a\u5b8c\u6210\uff0c\u4e0d\u4fdd\u8bc1\u548c\u6700\u7ec8\u7248\u672c\u4e00\u81f4)\uff1a<\/p>\n

<section itemscope itemtype=\"http:\/\/example.org\/animals#cat\">\n <h1 itemprop=\"name http:\/\/example.com\/fn\">Hedral<\/h1>\n <p itemprop=\"desc\">Hedral is a male american domestic\n shorthair, with a fluffy <span\n itemprop=\"http:\/\/example.com\/color\">black<\/span> fur with <span\n itemprop=\"http:\/\/example.com\/color\">white<\/span> paws and belly.<\/p>\n <img itemprop=\"img\" src=\"hedral.jpeg\" alt=\"\" title=\"Hedral, age 18 months\">\n<\/section><\/pre>\n

\u4ece\u4e0a\u9762\u8fd9\u4e00\u6bb5HTML\u53ef\u4ee5\u5f97\u5230\u5982\u4e0b\u4fe1\u606f\uff1a\u6709\u4e00\u53ea\u732b\uff0c\u4ed6\uff1a<\/p>\n\n\n\n\n\n\n\n\n\n\n
Property<\/td>\nValue<\/td>\n<\/tr>\n<\/thead>\n
name<\/td>\nHedral<\/td>\n<\/tr>\n
http:\/\/example.com\/fn<\/td>\nHedral<\/td>\n<\/tr>\n
desc<\/td>\nHedral is a male american domestic shorthair, with a fluffy black fur with white paws and belly.<\/td>\n<\/tr>\n
http:\/\/example.com\/color<\/td>\nblack<\/td>\n<\/tr>\n
http:\/\/example.com\/color<\/td>\nwhite<\/td>\n<\/tr>\n
img<\/td>\n…\/hedral.jpeg<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\u4f60\u53ef\u4ee5\u4f7f\u7528\u5fae\u683c\u5f0f\u7684Dom\u6a21\u578b\u6765\u8bbf\u95ee\u5b83\uff1a<\/p>\n

var cats = document.getItems(\"http:\/\/example.com\/feline\");\nvar colors = cat.properties['http:\/\/example.com\/color'].values;\nvar result;\nif (colors.length == 0) {\n  result = 'Color unknown.';\n} else if (colors.length == 1) {\n  result = 'Color: ' + colors[0];\n} else {\n  result = 'Colors:';\n  for (var i = 0; i < colors.length; i += 1)\n    result += ' ' + colors[i];\n}<\/pre>\n

\u662f\u4e0d\u662f\u5f88\u795e\u5947\uff1f<\/p>\n

\u4f60\u53ef\u4ee5\u5c06\u4f7f\u7528itemtype=”http:\/\/microformats.org\/profile\/hcard”\u6765\u63cf\u8ff0\u540d\u7247\u4fe1\u606f\uff0c\u4e5f\u53ef\u4ee5\u7528http:\/\/microformats.org \/profile\/hcalenda\u6765\u63cf\u8ff0\u65e5\u5386\u3002\u8fd9\u6837\u5c31\u4e0d\u7528\u53e6\u7acb\u6807\u51c6\uff0c\u4f7f\u7528\u5fae\u683c\u5f0f\u7684\u6807\u51c6\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n

\u518d\u8c08\u8c08RDFa<\/a>\u3002RDFa\u662f\u4e00\u4e2aW3C \u63a8\u8350\u6807\u51c6<\/a>\u3002\u5b83\u6269\u5145\u4e86XHTML<\/a>\u7684\u51e0\u4e2a\u5c5e\u6027\uff0c \u7f51\u9875\u5236\u4f5c\u8005\u53ef\u4ee5\u5229\u7528\u8fd9\u4e9b\u5c5e\u6027\u5728\u7f51\u9875\u4e2d\u6dfb\u52a0\u673a\u68b0\u53ef\u8bfb\u7684\u5143 \u6570\u636e<\/a>\u3002\u4e0eRDF<\/a>\u6570\u636e\u6a21\u578b\u7684\u5bf9\u5e94\u5173\u7cfb\u4f7f\u5f97 RDFa\u53ef\u4ee5\u5c06RDF\u4e09\u4f53\u5d4c\u5165\u5728XHTML\u6587\u4ef6\u4e2d\uff0c\u5b83\u4e5f\u4f7f\u5f97\u7b26\u5408\u6807\u51c6\u7684\u4f7f\u7528\u7aef\u53ef\u4ee5\u4eceRDFa\u6587\u4ef6\u4e2d\u8403\u53d6\u51fa\u8fd9\u4e9bRDF\u4e09\u4f53\u6765\u3002\u63a8\u8350\u4e00\u7bc7\u5b66\u4e60RDFa\u7684\u6587\u7ae0\uff0c \u300aRDFa \u5165\u95e8<\/a>\u300b<\/p>\n

\u4e8b\u5b9e\u4e0aRDFa\u662f\u4e3aXhtml2\u5f00\u53d1\u7684\uff0c\u540e\u6765\u8fc1\u79fb\u5230Xhtml1.0\u4e0a,\u8981\u60f3\u4f7f\u7528RDFa\uff0c\u5219\u6587\u6863\u5fc5\u987b\u6709XML\u7684\u6027\u8d28\uff0c\u8fd9\u5c31\u9ebb\u70e6\u4e86\u3002\u5c06\u6765\u975e\u5e38\u6d41\u884c\u7684Html5\u4e0d\u662fXML\uff0c\u5728\u975eXML\u7684 HTML\u91cc\u65e0\u6cd5\u4f7f\u7528XML \u547d\u540d\u7a7a\u95f4<\/a>\u3002\u800cHtml5\u5df2\u7ecf\u6709\u6bd4\u8f83\u5b8c\u5584\u7684\u8bed\u4e49\u65b9\u6cd5\u4e86\uff0c\u90a3\u4e48RDFa\u4f55\u53bb\u4f55\u4ece\uff1f<\/p>\n

\u53c2\u89c1<\/p>\n

http:\/\/edward.oconnor.cx\/2009\/05\/microdata-microformats-and-rdf<\/a><\/p>\n

http:\/\/www.w3.org\/TR\/rdfa-in-html\/<\/a><\/p>\n

http:\/\/www.w3.org\/TR\/2010\/WD-rdfa-in-html-20100304\/<\/a><\/p>\n

http:\/\/www.w3.org\/TR\/2010\/WD-rdfa-core-20100422\/<\/a><\/p>\n

http:\/\/www.w3.org\/TR\/2010\/WD-html-markup-20100304\/<\/a><\/p>\n

http:\/\/www.w3.org\/TR\/2010\/WD-xhtml-rdfa-20100422\/<\/a><\/p>\n

http:\/\/www.whatwg.org\/specs\/web-apps\/current-work\/multipage\/microdata.html<\/a><\/p>\n

\n\n\n\n\n\n\n\n\n\n\n
Property<\/td>\nValue<\/td>\n<\/tr>\n<\/thead>\n
name<\/td>\nHedral<\/td>\n<\/tr>\n
http:\/\/example.com\/fn<\/td>\nHedral<\/td>\n<\/tr>\n
desc<\/td>\nHedral is a male american domestic shorthair, with a fluffy black fur with white paws and belly.<\/td>\n<\/tr>\n
http:\/\/example.com\/color<\/td>\nblack<\/td>\n<\/tr>\n
http:\/\/example.com\/color<\/td>\nwhite<\/td>\n<\/tr>\n
img<\/td>\n…\/hedral.jpeg<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n","protected":false},"excerpt":{"rendered":"

\u7f18\u8d77 HTML4,Html5,XHtml1,XHtml1.1,XHtml2….\u90fd\u662fW3C\u7684\u4ea7\u54c1\uff0c\u4e71 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"\nHTML5\u4e2d\u7684\u5fae\u6570\u636e - \u6211\u81ea\u7136<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/yankay.com\/html5\u4e2d\u7684\u5fae\u6570\u636e\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"HTML5\u4e2d\u7684\u5fae\u6570\u636e - \u6211\u81ea\u7136\" \/>\n<meta property=\"og:description\" content=\"\u7f18\u8d77 HTML4,Html5,XHtml1,XHtml1.1,XHtml2….\u90fd\u662fW3C\u7684\u4ea7\u54c1\uff0c\u4e71 […]\" \/>\n<meta property=\"og:url\" content=\"http:\/\/yankay.com\/html5\u4e2d\u7684\u5fae\u6570\u636e\/\" \/>\n<meta property=\"og:site_name\" content=\"\u6211\u81ea\u7136\" \/>\n<meta property=\"article:published_time\" content=\"2010-04-25T12:37:24+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data1\" content=\"2\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/yankay.com\/#website\",\"url\":\"http:\/\/yankay.com\/\",\"name\":\"\\u6211\\u81ea\\u7136\",\"description\":\"\\u989c\\u5f00\\u7684\\u535a\\u5ba2\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"http:\/\/yankay.com\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-CN\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/yankay.com\/html5%e4%b8%ad%e7%9a%84%e5%be%ae%e6%95%b0%e6%8d%ae\/#webpage\",\"url\":\"http:\/\/yankay.com\/html5%e4%b8%ad%e7%9a%84%e5%be%ae%e6%95%b0%e6%8d%ae\/\",\"name\":\"HTML5\\u4e2d\\u7684\\u5fae\\u6570\\u636e - \\u6211\\u81ea\\u7136\",\"isPartOf\":{\"@id\":\"http:\/\/yankay.com\/#website\"},\"datePublished\":\"2010-04-25T12:37:24+00:00\",\"dateModified\":\"2010-04-25T12:37:24+00:00\",\"author\":{\"@id\":\"http:\/\/yankay.com\/#\/schema\/person\/f52d918e9bfa51c4454172c2caa7704f\"},\"breadcrumb\":{\"@id\":\"http:\/\/yankay.com\/html5%e4%b8%ad%e7%9a%84%e5%be%ae%e6%95%b0%e6%8d%ae\/#breadcrumb\"},\"inLanguage\":\"zh-CN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/yankay.com\/html5%e4%b8%ad%e7%9a%84%e5%be%ae%e6%95%b0%e6%8d%ae\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/yankay.com\/html5%e4%b8%ad%e7%9a%84%e5%be%ae%e6%95%b0%e6%8d%ae\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"http:\/\/yankay.com\/\",\"url\":\"http:\/\/yankay.com\/\",\"name\":\"\\u9996\\u9875\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@id\":\"http:\/\/yankay.com\/html5%e4%b8%ad%e7%9a%84%e5%be%ae%e6%95%b0%e6%8d%ae\/#webpage\"}}]},{\"@type\":\"Person\",\"@id\":\"http:\/\/yankay.com\/#\/schema\/person\/f52d918e9bfa51c4454172c2caa7704f\",\"name\":\"yankay\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"http:\/\/yankay.com\/#personlogo\",\"inLanguage\":\"zh-CN\",\"url\":\"http:\/\/1.gravatar.com\/avatar\/426bb830224c1471011d92a830a6ed4f?s=96&d=wavatar&r=g\",\"contentUrl\":\"http:\/\/1.gravatar.com\/avatar\/426bb830224c1471011d92a830a6ed4f?s=96&d=wavatar&r=g\",\"caption\":\"yankay\"},\"sameAs\":[\"http:\/\/47.100.65.109\"],\"url\":\"http:\/\/yankay.com\/author\/yankay\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/posts\/25935"}],"collection":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/comments?post=25935"}],"version-history":[{"count":0,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/posts\/25935\/revisions"}],"wp:attachment":[{"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/media?parent=25935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/categories?post=25935"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yankay.com\/wp-json\/wp\/v2\/tags?post=25935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}