1、 KSKSKSKSKSKSKSK KSKSKS KSKSK KSKS KSK KS KS X 6061HTML 5KS X 6061: 2012 2012 12 28 http:/www.kats.go.krKS X 6061:2012 : e- ( ) ( ) () ( ) : () ( ) DRM ( ) KS X 6061:2012 : (http:/www.standard.go.kr) : :2012 12 28 2012-0828 : e- : ( 02-509-7262) (http:/www.kats.go.kr). 10 5 , . KS X 6061:2012 i . iv
2、 . iv 1 1 2 1 3 .4 4 (Introduction) 7 4.1 (Background).7 4.2 (Audience) 7 4.3 (Scope)7 4.4 (History).8 4.5 (Design notes) 9 4.6 HTML XHTML(HTML vs XHTML) 10 4.7 (Structure of this specification) .10 4.8 HTML (Quick introduction to HTML) .12 4.9 (Conformance requirements for authors) .14 4.10 (Recomm
3、ended reading) 20 5 (Common infrastructure) 22 5.1 (Terminology) 22 5.2 (Conformance requirements) 25 5.3 (Case-sensitivity and string comparison).33 5.4 UTF-834 5.5 (Common microsyntaxes) .35 5.6 URL(URLs) .55 5.7 (Fetching resources) .63 5.8 DOM (Common DOM interfaces) .67 5.9 (Namespaces).82 6 HT
4、ML , AP(Semantics, structure and APIs of HTML documents) 82 6.1 (Documents)82 6.2 (Elements) .93 6.3 HTML API(APIs in HTML documents) 124 6.4 Xpath XSLT (Interactions with XPath and XSLT)125 6.5 (Dynamic markup insertion).126 7 HTML (Elements of HTML) 133 7.1 (Html element)133 7.2 (Document metadata
5、)134 7.3 (Scripting).154 7.4 (Sections)168 7.5 (Grouping content)191 7.6 (Text Level Semantic) 209 7.7 (Edit)239 7.8 (Embedded content)243 KS X 6061:2012 ii 7.9 (Tabular data).360 7.10 (Forms)387 7.11 (Interactive elements) 496 7.12 (Links)513 7.13 (Common idioms without dedicated elements)525 8 (Lo
6、ading Web pages).535 8.1 (Browsing contexts).535 8.2 Window (Window object)540 8.3 (Origin).548 8.4 (Session history and navigation) .553 8.5 (Browsing the Web) 561 8.6 (Offline Web applications).575 9 API(Web application APIs) .598 9.1 (Scripting).598 9.2 Base64 (Base64 utility methods)611 9.3 (Tim
7、ers)614 9.4 (User prompts).617 9.5 : Navigator (System state and capabilities: the Navigator object).621 10 (User interaction) 627 10.1 hidden (hidden attribute).627 10.2 (Activation) .628 10.3 (Focus).629 10.4 (Assigning keyboard shortcuts)633 10.5 contenteditable (contenteditable attribute) .635 1
8、0.6 (Spelling and grammar checking)639 10.7 (Drag and drop) .640 10.8 API (Editing APIs) .661 11 HTML (HTML syntax) 666 11.1 HTML (Writing HTML documents).667 11.2 HTML (Parsing HTML documents)676 11.3 HTML (Serializing HTML fragments).766 11.4 HTML (Parsing HTML fragments).768 11.5 (Named character
9、 references).770 12 XHTML (XHTML syntax)825 12.1 XHTML (Writing XHTML documents)826 12.2 XHTML (Parsing XHTML documents).826 12.3 XHTML (Serializing XHTML fragments)827 12.4 XHTML (Parsing XHTML fragments)828 13 (Rendering) .829 13.1 (Introduction)829 13.2 CSS (CSS user agent style sheet and present
10、ational hints) 829 13.3 (Replaced elements) .844 13.4 (Bindings).856 KS X 6061:2012 iii 13.5 (Frames and framesets).864 13.6 (Interactive media) .867 13.7 (Print media) .869 14 (Obsolete features) 869 14.1 (Obsolete but conforming features).869 14.2 (Requirements for implementations).873 15 IANA (IA
11、NA considerations) 890 15.1 text/html 890 15.2 text/html-sandboxed .891 15.3 application/xhtml xml893 15.4 text/cache- 894 KS X 6061:2012 .896 KS X 6061:2012 iv HTML 5 Web Site . Web Application Markup Tag, Cross Date, Plug-in Multimedia, Animation , . , HTML . HTML 5 . NO. HTML 5 1 Introduction HTM
12、L 5 , 2 Common infrastructure HTML XML IDL , (resource) , XML, DOM , Scripting, Plug-in, 3 Semantics, structure and APIs of HTML documents XML HTML Document , HTML API, Xpath XSLT . 4 The elements of HTML HTML Root , , , , 5 Loading Web pages 6 Web application APIs , 7 User interaction , , , , , 8 T
13、he HTML syntax HTML MIME HTML , HTML , HTML 9 The XHTML syntax XML , HTML, XHTML 10 Rendering HTML , CSS 11 Obsolete features HTML 5 12 IANA considerations KS X 6061:2012 v World Wide Web Consortium(W3C) 2011 5 Last Call Woring Draft . KS X 6061:2012 HTML 5 HTML 5 1 , API . , ( , CSS ). . , . , , ,
14、CPU . , , ( , ), , ( , , ), . 2 . . ( ) . KS X ISO 8601, ISO/IEC 8859 11, Information technology 8-bit single-byte coded graphic character sets Part 11: Latin/Thai alphabet IEC 61966 2-1, Multimedia systems and equipment Colour measurement and management Part 2-1: Colour management Default RGB colou
15、r space sRGB Augmented BNF for Syntax Specifications: ABNF, D. Crocker, P. Overell. IETF. The about URI scheme, J. Holsten, L. Hunt. IETF. Accessible Rich Internet Applications (WAI-ARIA), J. Craig, M. Cooper, L. Pappas, R. Schwerdtfeger, L. Seeman. W3C. WAI-ARIA 1.0 User Agent Implementation Guide,
16、 A. Snow-Weaver, M. Cooper. W3C. (Non-normative) Authoring Tool Accessibility Guidelines (ATAG) 2.0, J. Richards, J. Spellman, J. Treviranus. W3C. (Non-normative) The Atom Syndication Format, M. Nottingham, R. Sayre. IETF. Tags for Identifying Languages; Matching of Language Tags, A. Phillips, M. Da
17、vis. IETF. Behavioral Extensions to CSS, I. Hickson. W3C. UAX #9: Unicode Bidirectional Algorithm, M. Davis. Unicode Consortium. KS X 6061:2012 2 (Non-normative) UTN #6: BOCU-1: MIME-Compatible Unicode Compression, M. Scherer, M. Davis. Unicode Consortium. (Non-normative) UTR #26: Compatibility Enco
18、ding Scheme For UTF-16: 8-BIT (CESU-8), T. Phipps. Unicode Consortium. (Non-normative) Character Model for the World Wide Web 1.0: Fundamentals, M. Drst, F. Yergeau, R. Ishida, M. Wolf, T. Texin. W3C. (Non-normative) On computable numbers, with an application to the Entscheidungsproblem, A. Turing.
19、In Proceedings of the London Mathematical Society, series 2, volume 42, pages 230-265. London Mathematical Society, 1937. HTTP State Management Mechanism, A. Barth. IETF. Cross-Origin Resource Sharing, A. van Kesteren. W3C. CP51932, Y. Naruse. IANA. Cascading Style Sheets Level 2 Revision 1, B. Bos,
20、 T. elik, I. Hickson, H. Lie. W3C. CSS Styling Attribute Syntax, E. Etemad. W3C. CSS Color Module Level 3, T. elik, C. Lilley, L. Baron. W3C. CSS Fonts Module Level 3, J. Daggett. W3C. Cascading Style Sheets Object Model (CSSOM), A. van Kesteren. W3C. CSSOM View Module, A. van Kesteren. W3C. CSS3 Ru
21、by Module, R. Ishida. W3C. CSS3 Basic User Interface Module, T. elik. W3C. CSS3 Values and Units, H. Lie, C. Lilley. W3C. Web DOM Core, A. van Kesteren. W3C. Document Object Model (DOM) Level 3 Events Specification, D. Schepers. W3C. (Non-normative) DOM Parsing and Serialization, Ms2ger. HTML 5.org.
22、 ECMAScript Language Specification. ECMA. (Non-normative) ECMAScript for XML (E4X) Specification. ECMA. Hangul Unix Environment. Korea Industrial Standards Association. Ref. No. KS C 5861-1992. Definition and Notes of Japanese EUC. UI-OSF-USLP. In English in the abridged translation of the UI-OSF Ap
23、plication Platform Profile for Japanese Environment, Appendix C. File API, A. Ranganathan. W3C. File API: Directories and System, E. Uhrhane. W3C. Chinese Internal Code Specification. Chinese IT Standardization Technical Committee. (Non-normative) Computer Graphics: Principles and Practice in C, Sec
24、ond Edition, J. Foley, A. van Dam, S. Feiner, J. Hughes. Addison-Wesley. ISBN 0-201-84840-6. (Non-normative) Inter Gravissimas, A. Lilius, C. Clavius. Gregory XIII Papal Bulls, February 1582. HTML to Platform Accessibility APIs Implementation Guide. W3C. (Non-normative) HTML 5: Techniques for provid
25、ing useful text alternatives, S. Faulkner. W3C. (Non-normative) HTML 5 differences from HTML 4, A. van Kesteren. W3C. Hypertext Transfer Protocol HTTP/1.1, R. Fielding, J. Gettys, J. Mogul, H. Frystyk, L. Masinter, P. Leach, T. Berners-Lee. IETF. Character Sets. IANA. Permanent Message Header Field
26、Names. IANA. JPEG File Interchange Format, E. Hamilton. The javascript resource identifier scheme, B. Hhrmann. IETF. The mailto URL scheme, P. Hoffman, L. Masinter, J. Zawinski. IETF. Mathematical Markup Language (MathML), D. Carlisle, P. Ion, R. Miner, N. Poppelier. W3C. Media Fragments URI, R. Tro
27、ncy, E. Mannens, S. Pfeiffer, D. Van Deursen. W3C. Microformats Wiki: existing rel values. Microformats. Media Type Sniffing, A. Barth, I. Hickson. IETF. Media Queries, H. Lie, T. elik, D. Glazman, A. van Kesteren. W3C. (Non-normative) Gecko Plugin API Reference. Mozilla. Autodiscovery in HTML/XHTML
28、. In OpenSearch 1.1 Draft 4, Section 4.6.2. OpenSearch.org. KS X 6061:2012 3 The Web Origin Concept, A. Barth. IETF. Pingback 1.0, S. Langridge, I. Hickson. Portable Network Graphics (PNG) Specification, D. Duce. W3C. (Non-normative) Polyglot Markup: HTML-Compatible XHTML Documents, E. Graff. W3C. (
29、Non-normative) The Properties and Promises of UTF-8, M. Drst. University of Zrich. In Proceedings of the 11th International Unicode Conference. Progress Events, A. van Kesteren. W3C. Public Suffix List. Mozilla Foundation. Domain Names Concepts and Facilities, P. Mockapetris. IETF, November 1987. Ch
30、aracter Mnemonics and Character Sets, K. Simonsen. IETF. Japanese Character Encoding for Internet Messages, J. Murai, M. Crispin, E. van der Poel. IETF. ISO-2022-JP-2: Multilingual Extension of ISO-2022-JP, M. Ohta, K. Handa. IETF. Korean Character Encoding for Internet Messages, U. Choi, K. Chon, H
31、. Park. IETF. ASCII Printable Characters-Based Chinese Character Encoding for Internet Messages, Y. Wei, Y. Zhang, J. Li, J. Ding, Y. Jiang. IETF. Chinese Character Encoding for Internet Messages, HF. Zhu, DY. Hu, ZG. Wang, TC. Kao, WCH. Chang, M. Crispin. IETF. Multipurpose Internet Mail Extensions
32、 (MIME) Part Two: Media Types, N. Freed, N. Borenstein. IETF. Key words for use in RFCs to Indicate Requirement Levels, S. Bradner. IETF. Japanese Character Encoding for Internet Messages, K. Tamaru. IETF. PKCS #1: RSA Encryption, B. Kaliski. IETF. The text/css Media Type, H. Lie, B. Bos, C. Lilley.
33、 IETF. Returning Values from Forms: multipart/form-data, L. Masinter. IETF. The “data“ URL scheme, L. Masinter. IETF. A MIME Content-Type for Directory Information, T. Howes, M. Smith, F. Dawson. IETF. vCard MIME Directory Profile, F. Dawson, T. Howes. IETF. URI Resolution Services Necessary for URN
34、 Resolution, M. Mealling, R. Daniel. IETF. UTF-16, an encoding of ISO 10646, P. Hoffman, F. Yergeau. IETF. The Text/Plain Format and DelSp Parameters, R. Gellens. IETF. XML Media Types, M. Murata, S. St. Laurent, D. Kohn. IETF. Algorithms and Identifiers for the Internet X.509 Public Key Infrastruct
35、ure Certificate and Certificate Revocation List (CRL) Profile, W. Polk, R. Housley, L. Bassham. IETF. Internationalizing Domain Names in Applications (IDNA), P. Faltstrom, P. Hoffman, A. Costello. IETF. UTF-8, a transformation format of ISO 10646, F. Yergeau. IETF. Uniform Resource Identifier (URI):
36、 Generic Syntax, T. Berners-Lee, R. Fielding, L. Masinter. IETF. Internationalized Resource Identifiers (IRIs), M. Drst, M. Suignard. IETF. The Codecs Parameter for “Bucket“ Media Types, R. Gellens, D. Singer, P. Frojdh. IETF. (Non-normative) Scripting Media Types, B. Hhrmann. IETF. The Base16, Base
37、32, and Base64 Data Encodings, S. Josefsson. IETF. Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile, D. Cooper, S. Santesson, S. Farrell, S. Boeyen, R. Housley, W. Polk. IETF. Internet Message Format, P. Resnick. IETF. URI Scheme for Global System fo
38、r Mobile Communications (GSM) Short Message Service (SMS), E. Wilde, A. Vaha-Sipila. IETF. (Non-normative) UTR #6: A Standard Compression Scheme For Unicode, M. Wolf, K. Whistler, C. Wicksteed, M. Davis, A. Freytag, M. Scherer. Unicode Consortium. Selectors, T. elik, E. Etemad, D. Glazman, I. Hickso
39、n, P. Linss, J. Williams. W3C. JIS X 0208: 7-bit and 8-bit double byte coded KANJI sets for information interchange. Japanese Industrial Standards Committee. Scalable Vector Graphics (SVG) Tiny 1.2 Specification, O. Andersson, R. Berjon, E. Dahlstrm, A. Emmons, J. Ferraiolo, A. Grasso, V. Hardy, S. Hayman, D. Jackson, C. Lilley, C. McCor