浏览器与元素、属性对照表

HTML文件的基本结构

浏览器与元素、属性对照表

L:Loose DTD,F:Frameset DTD,S:Strict DTD
IE:Internet Explorer
Firefox,也可以代表Netscape 8.0及Mozilla,因为它们使用同样的呈现引擎
√:完全对应,△:部分对应,×:非对应,※:不可使用

浏览器与元素、属性对照表
元素 属性 IE Firefox Opera Safari DTD
html   S
  version L
  xlmns S
head   S
  profile × × × S
body S
  text L
  link L
  alink L
  vlink L
  background L
  bgcolor L
  bgproperties × L
  topmargin L
  leftmargin L
  topmargin L
  bottommargin × × × L
  rightmargin × × × L
  marginheight × L
  marginwidth × L
title   S
meta   S
  name S
  content S
  http-equiv S
  scheme × × S
  lang S
h1~h6   S
  align L
div   S
  align L
span   S
abbr   × × S
  title × S
acronym   × S
  title S
em   S
strong   S
code   S
dfn   × S
kbd   S
samp   S
var   S
address   S
cite   S
blockquote   S
  cite S
q   × × × S
  cite × S
sup   S
sub   S
p   S
  align L
br   S
  clear L
del   S
  cite × S
  datetime × S
ins   S
  cite × S
  datetime × S
pre   S
  width × × × L
plaintext    
xmp   ×  
  tabindex × × ×  
  accesskey × × ×  
b   S
i   S
big   S
small   S
s   L
strike   L
tt   S
u   L
basefont   × × × L
  size × × × L
  corlor × × × L
  face × × × L
font   L
  size L
  corlor L
  face L
hr   S
  align L
  noshade L
  size L
  width L
  color × L
center   L
ul   S
  type L
  compact × × × L
ol   S
  type L
  compact × × × L
  start L
li   S
  type L
  value L
dl   S
  compact × × × L
dt   S
dd   S
dir   L
  compact × × L
menu   L
  compact × × L
a   S
  name S
  href S
  hreflang S
  rel × S
  rev × S
  charset × × × S
  shape × S
  coords × S
  target L
  tabindex × S
  accesskey × × × S
link   S
  href S
  hreflang × × S
  type S
  media S
  rel S
  rev S
  charset × × S
  target × × S
base   S
  href S
  target L
img   S
  src S
  alt S
  longdesc × × S
  name L
  ismap S
  usermap S
  align L
  width S
  height S
  hspace L
  vspace L
  border  
  dynsrc × × ×  
  loop × × ×  
  lowsrc × × × ×  
  start × × ×  
object   S
  classid S
  codebase S
  codetype S
  data S
  type S
  archive S
  declare × × × × S
  standby × × × × S
  tabindex × × × S
  usermap S
  name S
  align L
  width S
  height S
  border L
  hspace × L
  vspace × L
param   S
  name S
  value S
  valuetype × × × S
  type × × × S
  id  
applet   L
  codebase L
  code L
  name L
  archive × L
  width L
  height L
  alt × × L
  align L
  hspace × L
  vspace × L
map   S
  name S
area   S
  shape S
  coords S
  href S
  nohref S
  accesskey × × S
  alt S
  tabindex × S
  target L
table   S
  summary × S
  align S
  width S
  height  
  frame S
  rules S
  border S
  cellpadding S
  cellspacing S
  bgcolor L
  background  
  bordercolor  
  bordercolordark × × ×  
  bordercolorlight × × ×  
thead   S
  align S
  valign S
  char × × × S
  charoff × × × S
tbody   S
  align S
  valign S
  char × × × S
  charoff × × × S
tfoot   S
  align S
  valign S
  char × × × S
  charoff × × × S
tr   S
  align S
  valign S
  bgcolor L
  char × × × S
  charoff × × × S
  background  
td   S
  headers × × × S
  scope × × × S
  abbr × × × S
  axis × × × S
  rowspan S
  colspan S
  nowrap L
  width L
  height L
  bgcolor L
  align S
  valign S
  char × × × S
  charoff × × × S
  background  
th   S
  headers × × × S
  scope × × × S
  abbr × × × S
  axis × × × S
  rowspan S
  colspan S
  nowrap L
  width L
  height L
  bgcolor L
  align S
  valign S
  char × × × S
  charoff × × × S
  background  
caption   S
  align L
  valign × ×  
colgroup   S
  span S
  align × × S
  valign × × S
  width S
  char × × × S
  charoff × × × S
  bgcolor × ×  
col span S
  align × S
  valign × S
  width × × S
  char × × × S
  charoff × × × S
  bgcolor × ×  
form   S
  action S
  method S
  enctype S
  accept-charset × × × S
  accept × × × S
  name L
  target L
input   S
  type S
  name S
  value S
  size S
  maxlength S
  checked S
  src S
  alt S
  align L
  accept × × S
  readonly S
  disabled S
  tabindex × S
  accesskey S
  usermap S
button   S
  name S
  value S
  type S
  disabled S
  tabindex × S
  accesskey S
select   S
  name S
  value S
  type S
  disabled S
  tabindex × S
option   S
  value S
  label S
  selected S
  disabled × S
optgroup   × S
  label × S
  disabled × S
isindex   L
  prompt L
textarea   S
  name S
  rols S
  cols S
  readonly S
  disabled S
  tabindex S
  accesskey × S
  wrap ×  
label   S
  for S
  accesskey × S
fieldset   S
legend   S
  align L
  accesskey S
frameset   F
  rows F
  cols F
  border  
  bordercolor × ×  
  frameborder  
  framespacing × ×  
frame   F
  name F
  longdesc × × × F
  src F
  noresize F
  scrolling F
  frameborder F
  bordercolor × ×  
  marginwidth F
  marginheight F
iframe   L
  name L
  longdesc × × × L
  src L
  scrolling L
  frameborder L
  marginwidth L
  marginheight L
  height L
  width L
  align × × × L
noframes   L
ruby   × × ×  
  name  
  tabindex  
  accesskey × × ×  
  language  
rb   × × ×  
  name  
  tabindex × × × ×  
  accesskey × × × ×  
  language  
rt   × × ×  
  name  
  tabindex × × × ×  
  accesskey × × × ×  
  language  
  rbspan  
rp   × × ×  
script   S
  type S
  language L
  src S
  defer S
  charset S
noscript   S
bdo   × × S
  dir × × S
style   S
  type S
  media S
marquee   S
  behavior  
  direction  
  scrollamount  
  scrolldelay  
  truespeed  
  loop  
  bgcolor  
  height  
  width  
  hspace  
  vspace  
  tabindex × × ×  
  accesskey × × ×  
  language  
blink   × ×  
embed    
  src  
  align  
  width  
  height  
  hspace  
  vspace  
  hidden  
  units  
  pluginspage  
  pluginurl ×  
  alt  
  accesskey  
  language  
  type  
  border  
  frameborder  
noembed    
bgsound   × × ×  
  src × × ×  
  balance × × ×  
  loop × × ×  
  volume  
nobr    
wbr   × ×  
comment   × × ×