The Meaning and Purpose of Responsive Web Design
The Ultimate CSS Survey 2017
Creating Media Queries for Responsive Web Designs
Five Techniques to Lazy Load Images for Website Performance
Quick Tip: How to Build Your Custom Theme for Telescope Nova
Quick Tip: How to Build Customizable HTML Widgets in Jekyll
Design Tricks with SVG Filters: A Masked Blur Effect
6 Free Web-Based SVG Editors Compared
Is Using SVG Images Good for Your Website's Performance?
Cut the File Size with These Three HTML Minification Tools
How You Can Use HTML5 Custom Data Attributes and Why
HTML5 Video and Audio: The Markup
HTML5 Forms: Input Types (Part 2)
HTML5 Forms: Input Types (Part 1)
HTML5 Forms: New Controls
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.