2013/01/23

HTML5で追加・廃止されたタグ

このエントリーをはてなブックマークに追加

W3Cで勧告されている情報を元にHTML4とHTML5のタグを比較してみました。 Ardor(@ArdorOnline)です。 HTML5で追加されたタグ、また廃止になるタグを一覧化しました。

HTML5の追加タグ

HTML5で追加になったタグは次の通りです。 全部で31タグです。

  • section
  • nav
  • article
  • aside
  • hgroup
  • header
  • footer
  • figure
  • figcaption
  • time
  • mark
  • ruby
  • rt
  • rp
  • bdi
  • wbr
  • embed
  • video
  • audio
  • source
  • track
  • canvas
  • datalist
  • keygen
  • output
  • progress
  • meter
  • details
  • summary
  • command

HTML5で廃止になるタグ

HTML5で廃止になるタグです。 廃止になったとしても同じ事を別のやり方でできるようになっているようです。 今後は使わないように気をつけましょう。

  • ACRONYM
  • DIR
  • APPLET
  • TT
  • BIG
  • STRIKE
  • FONT
  • BASEFONT
  • FRAMESET
  • FRAME
  • NOFRAMES
  • ISINDEX

HTMLの比較表

HTML4からHTML5までのタグを一覧化してみました。 空欄は追加、廃止になったタグです。
※タグはすべて小文字で統一しました。

HTML全タグ HTML4タグ HTML4.01タグ HTML5タグ
a a a a
abbr abbr abbr abbr
acronym acronym acronym
address address address address
applet applet applet
area area area area
article article
aside aside
audio audio
b b b b
base base base base
basefont basefont basefont
bdi bdi
bdo bdo bdo bdo
big big big
blockquote blockquote blockquote blockquote
body body body body
br br br br
button button button button
canvas canvas
caption caption caption caption
cite cite cite cite
code code code code
col col col col
colgroup colgroup colgroup colgroup
command command
datalist datalist
dd dd dd dd
del del del del
details details
dfn dfn dfn dfn
dir dir dir
div div div div
dl dl dl dl
dt dt dt dt
em em em em
embed embed
fieldset fieldset fieldset fieldset
figcaption figcaption
figure figure
font font font
footer footer
form form form form
frame frame frame
frameset frameset frameset
h1 h1 h1 h1
h2 h2 h2 h2
h3 h3 h3 h3
h4 h4 h4 h4
h5 h5 h5 h5
h6 h6 h6 h6
head head head head
header header
hgroup hgroup
hr hr hr hr
html html html html
i i i i
iframe iframe iframe iframe
img img img img
input input input input
ins ins ins ins
isindex isindex isindex
kbd kbd kbd kbd
keygen keygen
label label label label
legend legend legend legend
li li li li
link link link link
map map map map
mark mark
menu menu menu menu
meta meta meta meta
meter meter
nav nav
noframes noframes noframes
noscript noscript noscript noscript
object object object object
ol ol ol ol
optgroup optgroup optgroup optgroup
option option option option
output output
p p p p
param param param param
pre pre pre pre
progress progress
q q q q
rp rp
rt rt
ruby ruby
s s s s
samp samp samp samp
script script script script
section section
select select select select
small small small small
source source
span span span span
strike strike strike
strong strong strong strong
style style style style
sub sub sub sub
summary summary
sup sup sup sup
table table table table
tbody tbody tbody tbody
td td td td
textarea textarea textarea textarea
tfoot tfoot tfoot tfoot
th th th th
thead thead thead thead
time time
title title title title
tr tr tr tr
track track
tt tt tt
u u u u
ul ul ul ul
var var var var
video video
wbr wbr

HTML4とHTML4.01のタグは、特に変更がないようです。

最後に

Webの仕事が増えてきたので、基礎的なことをまとめています。 既に多くの解説サイトが出てきていますので、各タグについては必要になった時に調べてみます。

最後までお読み頂きありがとうございます。

0 件のコメント:

コメントを投稿

ブログ アーカイブ