Sylius and Cutting Your Teeth on TDD
Quick Tip: Create a Simple WordPress Gallery in 5 Minutes
Learn About Code Review in Bitbucket Cloud
HTML5 Forms: New Controls
Laravel Dusk - Intuitive and Easy Browser Testing for All!
How Much Should Your Logo Design Cost?
Scrum Artifacts: Product Increment
jQuery Pagination Plugins
Make Your Next Move. Make Your Next Website.
Java's Synchronized Keyword in Three Minutes
Web Layout 101: Vertical Rhythm is a Drummer
An Introduction to Messages Extensions on iOS
Open Your Data Up to Bots Using Microdata
Microdata is another technology that’s rapidly gaining adoption and support, but, unlike WAI-ARIA, it’s technically part of HTML5. Although still early in development, it’s worth mentioning the Microdata specification here, because the technology provides a peek into what may be the future of document readability and semantics.
In the spec, Microdata is defined as a mechanism that “allows machine-readable data to be embedded in HTML documents in an easy-to-write manner, with an unambiguous parsing model.”
With Microdata, page authors can add specific labels to HTML elements, annotating them so that they can be read by machines or bots. This is done by means of a customized vocabulary. For example, you might want a script or other third-party service to be able to access your pages and interact with specific elements on the page in a certain manner. With Microdata, you can extend existing semantic elements (such as
figure) to allow those services to have specialized access to the annotated content.
This can appear confusing, so let’s think about a real-world example. Let’s say your site includes reviews of movies. You might have each review in an
article element, with a number of stars or a percentage score for your review. But when a machine comes along, such as Google’s search spider, it has no way of knowing which part of your content is the actual review—all it sees is a bunch of text on the page.
Why would a machine want to know what you thought of a movie? It’s worth considering that Google has started displaying richer information in its search results pages, in order to provide searchers with more than just textual matches for their queries. It does this by reading the review information encoded into those sites’ pages using Microdata or other similar technologies. An example of movie review information is shown below.