HTML and CSS Reference
In-Depth Information
and RDF. If one of these metadata types is used, it is necessary to abide by the defined set of
itemprop values that can be used. As an example, the following defines a vCard in HTML5
using microdata attributes:
<div itemscope itemtype="http://microformats.org/profile/hcard">
<h2 itemprop="fn"> William Adama </h2>
<span itemprop="n" item>
<strong> Rank: </strong> <span itemprop="honorific-prefix"> Admiral </
span><br>
<strong> Nicknames: </strong><br>
<span itemprop="nickname"> Bill </span><br>
</span>
<strong> Location: </strong>
<span itemprop="adr" item>
<span itemprop="region"> Earth </span><br>
</span>
</div>
It is possible to have duplicate entries with the same itemprop name and different values:
<div itemscope itemtype="http://microformats.org/profile/hcard">
<h2 itemprop="fn"> William Adama </h2>
<span itemprop="n" item>
<strong> Nicknames: </strong><br>
<span itemprop="nickname"> Bill </span><br>
<span itemprop="nickname"> Old Man </span><br>
<span itemprop="nickname"> Husker </span><br>
</span>
</div>
It is also possible to have an itemprop with multiple names:
<div itemscope itemtype="http://microformats.org/profile/hcard">
<h2 itemprop="fn"> William Adama </h2>
<strong> Rank: </strong> <span itemprop="title role"> Admiral </span><br>
</div>
The HTML5 specification defines extensions to the DOM to support microdata. This
topic is outside the scope of our discussion, but note that these extensions are not required
to use microdata today because standard DOM methods and traversal schemes should be
able to access any added data.
HTML5: Beyond Markup
One quite controversial aspect of the HTML5 specification is its “kitchen sink” approach to
solving all the woes and inconsistencies of Web development. HTML5 does not just define
markup and how it should be handled by browsers; instead, it addresses in a fair amount of
depth, the intersection of markup and other technologies like CSS and JavaScript, discussing
correct usage, addressing networking issues, exposing security concerns, proposing metadata
applications, and more. In this sense, HTML5 can be criticized for being a bit unfocused at
times and reminds the author of past grand solution efforts in computing, most of which
Search WWH ::




Custom Search