Why XHTML Modularization?
为什么XHTML会模块化?
XHTML is a simple, but large language. XHTML contains most of the functionality a web developer will need.
XHTML语言既简单又庞大语言。其函盖了WEB开发人员所需的所有功能
For some purposes XHTML is too large and complex, and for other purposes it is much too simple.
使用目的不同,XHTML可以是庞大而复杂的,也可以是非常简单的。
By splitting XHTML into modules, the W3C (World Wide web Consortium) has created small and well-defined sets of XHTML elements that can be used separately for simple devices as well as combined with other XML standards into larger and more complex applications.
XHTML模块化后, 那些小型元素集合就可以分离出来使用到简单的设备上,同时还能与XML标准合并起来使用到大型和复杂的应用当中去
With modular XHTML, product and application designers can:
使用模块化的XHTML,开发设计者可以:
- Choose the elements to be supported by a device using standard XHTML building blocks.
为设备选择可支持的XHTML元素 - Add extensions to XHTML, using XML, without breaking the XHTML standard.
在不打破XHTML标准的前提下使用XML来延伸XHTML的功能 - Simplify XHTML for devices like hand held computers, mobile phones, TV, and home appliances.
针对手提电脑,移动电话,电视和家电这类设备使用简化的XHTML - Extend XHTML for complex applications by adding new XML functionality (like MathML, SVG, Voice and Multimedia).
通过加入XML的新功能(像声音、多媒体的)将XHTML延伸到复杂的应用上 - Define XHTML profiles like XHTML Basic (a subset of XHTML for mobile devices).
XHTML Modules
XHTML模块
W3C has split the definition of XHTML into 28 modules:
W3C将XHTML定义分离成28个模块:
模块名称 | 描述 |
---|---|
Applet Module | Defines the deprecated* applet element. 不推荐的applet元素 |
Base Module | Defines the base element. 定义base元素 |
Basic Forms Module | Defines the basic forms elements. 定义基本表单元素 |
Basic Tables Module | Defines the basic table elements. 定义基本表格元素 |
Bi-directional Text Module | Defines the bdo element. 定义bdo元素 |
Client Image Map Module | Defines browser side image map elements. 定义浏览器端的图象热点元素 |
Edit Module | Defines the editing elements del and ins. 定义del和ins编辑元素 |
Forms Module | Defines all elements used in forms. 定义所有使用在表单中的元素 |
Frames Module | Defines the frameset elements. 定义框架元素 |
Hypertext Module | Defines the a element. 定义a 元素 |
Iframe Module | Defines the iframe element. 定义iframe元素 |
Image Module | Defines the img element. 定义img元素 |
Intrinsic Events Module | Defines event attributes like onblur and onchange. 定义例如onblur和onchange事件属性 |
Legacy Module | Defines deprecated* elements and attributes. 定义不推荐的元素和属性 |
Link Module | Defines the link element. 定义link元素 |
List Module | Defines the list elements ol, li, ul, dd, dt, and dl. 定义ol,li,ul,dd,dt和dl这些列表元素 |
Metainformation Module | Defines the meta element. 定义meta元素 |
Name Identification Module | Defines the deprecated* name attribute. 定义不推荐的name属性 |
Object Module | Defines the object and param elements. 定义object和param元素 |
Presentation Module | Defines presentation elements like b and i. 定义类似b和i的一般性元素 |
Scripting Module | Defines the script and noscript elements. 定义script和noscript元素 |
Server Image Map Module | Defines server side image map elements. 定义服务器端图象热点元素 |
Structure Module | Defines the elements html, head, title and body. 定义html,head,title和body元素 |
Style Attribute Module | Defines the style attribute. 定义style属性 |
Style Sheet Module | Defines the style element. 定义style元素 |
Tables Module | Defines the elements used in tables. 定义在table 中使用的元素 |
Target Module | Defines the target attribute. 定义target属性 |
Text Module | Defines text container elements like p and h1. 定义类型p和h1这样的包含文字的元素 |
* Deprecated elements should not be used in XHTML.
XHTML中不能使用不被赞成的元素