没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
HTML 5
Draft Standard — 16 July 2009
You can take part in this work. Join the working group's discussion
list.
Web designers! We have a FAQ, a forum, and a help mailing list
for you!
Multiple-page version:
http://whatwg.org/html5
One-page version:
http://www.whatwg.org/specs/web-apps/current-work/
PDF print versions:
A4: http://www.whatwg.org/specs/web-apps/current-work/
html5-a4.pdf
Letter: http://www.whatwg.org/specs/web-apps/current-work/
html5-letter.pdf
Version history:
Twitter messages (non-editorial changes only): http://twitter.com/WHATWG
Commit-Watchers mailing list: http://lists.whatwg.org/listinfo.cgi/
commit-watchers-whatwg.org
Interactive Web interface: http://html5.org/tools/web-apps-tracker
Subversion interface: http://svn.whatwg.org/
HTML diff with the last version in Subversion: http://whatwg.org/specs/web-apps/
current-work/index-diff
Issues:
To send feedback: whatwg@whatwg.org
To view and vote on feedback: http://www.whatwg.org/issues/
Editor:
Ian Hickson, Google, ian@hixie.ch
© Copyright 2004-2009 Apple Computer, Inc., Mozilla Foundation, and Opera Software ASA.
You are granted a license to use, reproduce and create derivative works of this document.
Abstract
This specification evolves HTML and its related APIs to ease the authoring of Web-based
applications. Additions include context menus, a direct-mode graphics canvas, a full duplex
client-server communication channel, more semantics, audio and video, various features for
offline Web applications, sandboxed iframes, and scoped styling. Heavy emphasis is placed
on keeping the language backwards compatible with existing legacy user agents and on
keeping user agents backwards compatible with existing legacy documents.
1
Status of this document
This is a work in progress! This document is changing on a daily if not hourly basis in
response to comments and as a general part of its development process. Comments are very
welcome, please send them to whatwg@whatwg.org. Thank you.
The current focus is in responding to the outstanding feedback. (There is a chart showing
current progress.)
Implementors should be aware that this specification is not stable. Implementors who are
not taking part in the discussions are likely to find the specification changing out
from under them in incompatible ways. Vendors interested in implementing this
specification before it eventually reaches the call for implementations should join the
WHATWG mailing list and take part in the discussions.
This specification is also being produced by the W3C HTML WG. The two specifications are
identical from the table of contents onwards.
This specification is intended to replace (be the new version of) what was previously the
HTML4, XHTML 1.x, and DOM2 HTML specifications.
Stability
Different parts of this specification are at different levels of maturity.
2
Table of contents
1 Introduction (page 20)
1.1 Background (page 20)
1.2 Audience (page 20)
1.3 Scope (page 20)
1.4 History (page 21)
1.5 Design notes (page 21)
1.5.1 Serializability of script execution (page 22)
1.5.2 Compliance with other specifications (page 22)
1.6 Relationships to other specifications (page 22)
1.6.1 Relationship to HTML 4.01 and DOM2 HTML (page 22)
1.6.2 Relationship to XHTML 1.x (page 23)
1.7 HTML vs XHTML (page 23)
1.8 Structure of this specification (page 24)
1.8.1 How to read this specification (page 24)
1.8.2 Typographic conventions (page 24)
1.9 A quick introduction to HTML (page 25)
2 Common infrastructure (page 28)
2.1 Terminology (page 28)
2.1.1 XML (page 28)
2.1.2 DOM trees (page 29)
2.1.3 Scripting (page 29)
2.1.4 Plugins (page 30)
2.1.5 Character encodings (page 30)
2.1.6 Resources (page 31)
2.2 Conformance requirements (page 31)
2.2.1 Dependencies (page 35)
2.2.2 Extensibility (page 36)
2.3 Case-sensitivity and string comparison (page 36)
2.4 Common microsyntaxes (page 37)
2.4.1 Common parser idioms (page 37)
2.4.2 Boolean attributes (page 38)
2.4.3 Keywords and enumerated attributes (page 38)
2.4.4 Numbers (page 39)
2.4.4.1 Non-negative integers (page 39)
2.4.4.2 Signed integers (page 40)
2.4.4.3 Real numbers (page 41)
2.4.4.4 Ratios (page 43)
2.4.4.5 Percentages and lengths (page 45)
2.4.4.6 Lists of integers (page 46)
2.4.4.7 Lists of dimensions (page 48)
2.4.5 Dates and times (page 49)
2.4.5.1 Months (page 49)
2.4.5.2 Dates (page 50)
2.4.5.3 Times (page 51)
2.4.5.4 Local dates and times (page 53)
2.4.5.5 Global dates and times (page 54)
2.4.5.6 Weeks (page 56)
3
2.4.5.7 Vaguer moments in time (page 58)
2.4.6 Colors (page 59)
2.4.7 Space-separated tokens (page 62)
2.4.8 Comma-separated tokens (page 63)
2.4.9 Reversed DNS identifiers (page 64)
2.4.10 References (page 64)
2.5 URLs (page 65)
2.5.1 Terminology (page 65)
2.5.2 Dynamic changes to base URLs (page 66)
2.5.3 Interfaces for URL manipulation (page 66)
2.6 Fetching resources (page 69)
2.6.1 Protocol concepts (page 71)
2.6.2 Encrypted HTTP and related security concerns (page 71)
2.6.3 Determining the type of a resource (page 71)
2.7 Character encodings (page 72)
2.8 Common DOM interfaces (page 73)
2.8.1 Reflecting content attributes in DOM attributes (page 73)
2.8.2 Collections (page 76)
2.8.2.1 HTMLCollection (page 76)
2.8.2.2 HTMLAllCollection (page 77)
2.8.2.3 HTMLFormControlsCollection (page 79)
2.8.2.4 HTMLOptionsCollection (page 81)
2.8.2.5 HTMLPropertyCollection (page 84)
2.8.3 DOMTokenList (page 85)
2.8.4 DOMSettableTokenList (page 88)
2.8.5 Safe passing of structured data (page 88)
2.8.6 DOMStringMap (page 90)
2.8.7 DOM feature strings (page 91)
2.8.8 Exceptions (page 91)
2.8.9 Garbage collection (page 92)
3 Semantics, structure, and APIs of HTML documents (page 93)
3.1 Introduction (page 93)
3.2 Documents (page 93)
3.2.1 Documents in the DOM (page 93)
3.2.2 Security (page 96)
3.2.3 Resource metadata management (page 96)
3.2.4 DOM tree accessors (page 100)
3.3 Elements (page 104)
3.3.1 Semantics (page 104)
3.3.2 Elements in the DOM (page 106)
3.3.3 Global attributes (page 108)
3.3.3.1 The id attribute (page 110)
3.3.3.2 The title attribute (page 111)
3.3.3.3 The lang and xml:lang attributes (page 111)
3.3.3.4 The xml:base attribute (XML only) (page 112)
3.3.3.5 The dir attribute (page 112)
3.3.3.6 The class attribute (page 113)
3.3.3.7 The style attribute (page 114)
3.3.3.8 Embedding custom non-visible data (page 114)
3.4 Content models (page 116)
4
3.4.1 Kinds of content (page 117)
3.4.1.1 Metadata content (page 118)
3.4.1.2 Flow content (page 119)
3.4.1.3 Sectioning content (page 119)
3.4.1.4 Heading content (page 119)
3.4.1.5 Phrasing content (page 120)
3.4.1.6 Embedded content (page 120)
3.4.1.7 Interactive content (page 120)
3.4.2 Transparent content models (page 122)
3.5 Paragraphs (page 122)
3.6 APIs in HTML documents (page 124)
3.7 Interactions with XPath and XSLT (page 126)
3.8 Dynamic markup insertion (page 127)
3.8.1 Controlling the input stream (page 127)
3.8.2 document.write() (page 129)
3.8.3 document.writeln() (page 130)
3.8.4 innerHTML (page 130)
3.8.5 outerHTML (page 131)
3.8.6 insertAdjacentHTML() (page 132)
4 The elements of HTML (page 135)
4.1 The root element (page 135)
4.1.1 The html element (page 135)
4.2 Document metadata (page 135)
4.2.1 The head element (page 135)
4.2.2 The title element (page 136)
4.2.3 The base element (page 137)
4.2.4 The link element (page 138)
4.2.5 The meta element (page 142)
4.2.5.1 Standard metadata names (page 144)
4.2.5.2 Other metadata names (page 144)
4.2.5.3 Pragma directives (page 145)
4.2.5.4 Other pragma directives (page 149)
4.2.5.5 Specifying the document's character encoding (page
149)
4.2.6 The style element (page 150)
4.2.7 Styling (page 152)
4.3 Scripting (page 153)
4.3.1 The script element (page 153)
4.3.1.1 Scripting languages (page 160)
4.3.1.2 Inline documentation for external scripts (page 160)
4.3.2 The noscript element (page 161)
4.4 Sections (page 163)
4.4.1 The body element (page 163)
4.4.2 The section element (page 165)
4.4.3 The nav element (page 166)
4.4.4 The article element (page 168)
4.4.5 The aside element (page 169)
4.4.6 The h1, h2, h3, h4, h5, and h6 elements (page 170)
4.4.7 The hgroup element (page 171)
4.4.8 The header element (page 172)
5
剩余934页未读,继续阅读
SilverNet
- 粉丝: 50
- 资源: 43
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1