TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Microdata: HTML5’s Best-Kept Secret

59 pointsby pathikover 14 years ago

5 comments

Kilimanjaroover 14 years ago
Polluting markup is not the solution. It looks really ugly and makes maintenance a nightmare. Separate markup from data (and style, scripts, etc) for a cleaner app.<p>I've always been a proponent of placing all data in a script using json which you can consume easily without screen scraping.<p><a href="http://mylittlehacks.appspot.com/dataislands" rel="nofollow">http://mylittlehacks.appspot.com/dataislands</a>
评论 #1683763 未加载
评论 #1684091 未加载
dododoover 14 years ago
why bother? because google, for example, will use some of the annotations:<p><a href="http://www.google.com/support/webmasters/bin/answer.py?answer=99170" rel="nofollow">http://www.google.com/support/webmasters/bin/answer.py?answe...</a>
评论 #1684312 未加载
arfrankover 14 years ago
Recent discussion here about microdata: <a href="http://news.ycombinator.com/item?id=1673623" rel="nofollow">http://news.ycombinator.com/item?id=1673623</a>
mark_l_watsonover 14 years ago
I have always liked (and often written about) an alternative: for HTML: <a href="http://example.com/test.html" rel="nofollow">http://example.com/test.html</a>, for semantic data: <a href="http://example.com/test.n3" rel="nofollow">http://example.com/test.n3</a> (N3 RDF format).<p>If a web app creates dynamic data at URL: <a href="http://example.com/stockfeeds?symbol=APPL" rel="nofollow">http://example.com/stockfeeds?symbol=APPL</a> then perhaps use something like: <a href="http://example.com/stockfeeds.n3?symbol=APPL" rel="nofollow">http://example.com/stockfeeds.n3?symbol=APPL</a> to get RDF. Also, have standard (or commonly used) meta data to point to an equivalent RDF URI in generated HTML.
alanhover 14 years ago
Never confuse microdata or microformats for API substitutes.