会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
先做事后做人
博客园
首页
新随笔
联系
订阅
管理
XHTML Essential(2)- XHTML DTD,Vaidation,Modularization
4.XHTML DTD The XHTML standard defines three Document Type Definitions. The most common is the XHTML Transitional. The 3 Document Type Definitions DTD specifies the syntax of a web page in SGML. DTD is used by SGML applications, such as HTML, to specify rules that apply to the markup of documents of a particular type, including a set of element and entity declarations. XHTML is specified in an SGML document type definition or 'DTD'. An XHTML DTD describes in precise, computer-readable language, the allowed syntax and grammar of XHTML markup. There are currently 3 XHTML document types: STRICT TRANSITIONAL FRAMESET XHTML 1.0 specifies three XML document types that correspond to three DTDs: Strict, Transitional, and Frameset. XHTML 1.0 Strict <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> Use this when you want really clean markup, free of presentational clutter. Use this together with Cascading Style Sheets. XHTML 1.0 Transitional <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> Use this when you need to take advantage of HTML's presentational features and when you want to support browsers that don't understand Cascading Style Sheets. XHTML 1.0 Frameset <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> Use this when you want to use HTML Frames to partition the browser window into two or more frames. 5.Vaidation Your WebSit click the follow url to vaidation your websit. http://www.w3schools.com/site/site_validate.asp 6.Modularization Why XHTML Modularization? XHTML is a simple, but large language. XHTML contains most of the functionality a web developer will need. For some purposes XHTML is too large and complex, and for other purposes it is much too simple. 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. With modular XHTML, product and application designers can: Choose the elements to be supported by a device using standard XHTML building blocks. Add extensions to XHTML, using XML, without breaking the XHTML standard. Simplify XHTML for devices like hand held computers, mobile phones, TV, and home appliances. Extend XHTML for complex applications by adding new XML functionality (like MathML, SVG, Voice and Multimedia). Define XHTML profiles like XHTML Basic (a subset of XHTML for mobile devices). XHTML Modules W3C has split the definition of XHTML into 28 modules: Module name Description Applet Module Defines the deprecated* applet element. Base Module Defines the base element. Basic Forms Module Defines the basic forms elements. Basic Tables Module Defines the basic table elements. Bi-directional Text Module Defines the bdo element. Client Image Map Module Defines browser side image map elements. Edit Module Defines the editing elements del and ins. Forms Module Defines all elements used in forms. Frames Module Defines the frameset elements. Hypertext Module Defines the a element. Iframe Module Defines the iframe element. Image Module Defines the img element. Intrinsic Events Module Defines event attributes like onblur and onchange. Legacy Module Defines deprecated* elements and attributes. Link Module Defines the link element. List Module Defines the list elements ol, li, ul, dd, dt, and dl. Metainformation Module Defines the meta element. Name Identification Module Defines the deprecated* name attribute. Object Module Defines the object and param elements. Presentation Module Defines presentation elements like b and i. Scripting Module Defines the script and noscript elements. Server Image Map Module Defines server side image map elements. Structure Module Defines the elements html, head, title and body. Style Attribute Module Defines the style attribute. Style Sheet Module Defines the style element. Tables Module Defines the elements used in tables. Target Module Defines the target attribute. Text Module Defines text container elements like p and h1. * Deprecated elements should not be used in XHTML.
posted on
2006-04-13 11:42
asdfasdf
阅读(
186
) 评论(
0
)
收藏
举报
刷新页面
返回顶部
博客园
© 2004-2025
浙公网安备 33010602011771号
浙ICP备2021040463号-3