You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
この春頃からMicrodataを試してみたりHTML5にかかわる機会が増えてきたので、いずれ実施しようと考えていたサイト全ページの書き換えを敢行しました。スタイルシートはごく一部を除いてほとんど従来のまま。ページ自身のメタデータほかの構造化データは、Schema.org語彙を中心にして表現しています。 Microdataの記述 今回使ったMicrodataの一部を紹介しておきます。Microdataは、文書内に記述されたものごとの特徴を表す名前-値の対(プロパティ)のグループをアイテムと呼び、基本単位として扱います。 アイテムと型 Microdataの場合、まず最初にアイテムの範囲(スコープ)をitemscope属性で示します。文書のメタデータを表現したいので、html要素にこの属性を加えて全体を一つのアイテムとします(itemscopeは真偽値属性で属性名のみを記述しますが、XHTML構
Microdataではitemprop属性を指定された要素からどうやって値を選択するか厳密に決められていて、それに外れた書き方はできない。metaやtime、img要素の場合はまぁそうなるよねみたいな感じなんだけど、a要素だけがちょっと。 仕様では、a要素でitemprop属性を使った場合その値はhref属性の値を絶対URLに変換したものとなっている。そのため以下のようには書けない。 <address itemscope itemtype="http://schema.org/Person"> Copyright © 2012 <a href="http://example.com/about/" itemprop="name url"> John Doe </a> </address> MicroformatsのhCardのような感覚では書けないということで、以下のようにspa
Mida is a Microdata extractor/parser library for Ruby. Installation Mida keeps RubyGems up-to-date with its latest version, so installing is as easy as: $ gem install mida Requirements: Nokogiri Command Line Usage To use the command line tool, supply it with the urls or filenames that you would like to be parsed (by default each item is output as yaml): mida http://lawrencewoodman.github.com/mida/
Editor's Draft 8 January 2010 Latest Published Version: http://www.w3.org/TR/md/ Latest Editor's Draft: http://dev.w3.org/html5/md/ Editors: Ian Hickson, Google, Inc. David Hyatt, Apple, Inc. This specification is available in the following formats: single page HTML, multipage HTML. This is $Revision: 1.2 $. Copyright © 2009 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C liability, trademark an
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く