您的位置:寻梦网首页编程乐园HTML园地HTML实用教程
HTML实用教程
作者:佚名 来源:梦之都(www.dreamdu.com)

22.1. XHTML1.1 属性集合 Attribute Collections

有些属性在很多标签上的意义都是一样的,它们可以分成几组集合:(Attribute Collections)

XHTML1.1的属性集合:

原属性 Core

  • xml:space ("default"* | "preserve")
  • class (NMTOKENS)
  • id (ID)
  • title (CDATA)

I18N属性 Internationalization

事件属性 UI events

  • onclick (Script)
  • ondblclick (Script)
  • onmousedown (Script)
  • onmouseup (Script)
  • onmouseover (Script)
  • onmousemove (Script)
  • onmouseout (Script)
  • onkeypress (Script)
  • onkeydown (Script)
  • onkeyup (Script)

样式属性 Style

一般属性 Common

上面四组属性合在一起被称为一般属性(Common):

  • Common = Core + Events + I18N + Style

大多数标签都具有"一般属性",有一些标签还具有自己的"私有属性". 比如:

私有属性

HTML视频教程