目次 < 名前順要素一覧 戻る

バナー

中年おっちゃんでも出来た ウェブページ作成講座 with ? mark

attrs 汎用属性

Generic Attributes
attrsで定義されている属性は、大部分の要素で使用できる一般的な属性で
  • coreattrs大部分の要素に共通の中心的な属性
  • i18n国際化対応用の属性
  • eventsユーザーインターフェイス用の共通属性
で構成されます。

W3CXHTML 1.0Multi-part XHTML fileDTDsXHTML-1.0-Transitional より 記述行を変更して記述しています。
onmouseover のコメントHTML 4.01 Strict DTD より引用しています。

<!--=================== Generic Attributes ===============================-->
<!ENTITY % attrs "%coreattrs; %i18n; %events;">
<!-- core attributes common to most elements -->
  id       document-wide unique id
  class    space separated list of classes
  style    associated style info
  title    advisory title/amplification -->
<!-- internationalization attributes
  lang        language code (backwards compatible)
  xml:lang    language code (as per XML 1.0 spec)
  dir         direction for weak/neutral text -->
<!-- attributes for common UI events
  onclick     a pointer button was clicked
  ondblclick  a pointer button was double clicked
  onmousedown a pointer button was pressed down
  onmouseup   a pointer button was released
  onmouseover a pointer was moved onto
  onmousemove a pointer was moved onto the element
  onmouseout  a pointer was moved away from the element
  onkeypress  a key was pressed and released
  onkeydown   a key was pressed down
  onkeyup     a key was released -->

目次 < 名前順要素一覧 戻る Top

Created:Jun 01, 2005 Updated:Oct.,25,2011 © by おっちゃん
Oct.,25,2011 全面更新