HTML5化に伴う修正のメモ

※当サイトではアフィリエイト広告を利用しています

古いHTMLをHTML5対応にした際に、http://validator.w3.org/で構文チェックした所、いくつかの警告が表示されたので、警告文と修正した内容についてをメモ。

Bad value Content-Style-Type for attribute http-equiv on element meta

下記の行が原因である。

HTML5からは「Content-Style-Type」の指定は不要になっている。

Bad value Content-Script-Type for attribute http-equiv on element meta.

下記の行が原因である。

HTML5からは「Content-Script-Type」の指定は不要になっている。

The align attribute on the div element is obsolete. Use CSS instead.

×

rightやcenterについても同様

Bad value top for attribute rel on element link: The string xxx is not a registered keyword.

×

rel属性で定義できる値はHTML5では限られていて、独自の値を設定することはできない。
設定可能な値の一覧については以下を参照。
http://microformats.org/wiki/existing-rel-values

コメント