PageRenderTime 73ms CodeModel.GetById 67ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/bundles/plugins-trunk/XML/xml/dtds/html5.dtd

#
Document Type Definition | 150 lines | 125 code | 25 blank | 0 comment | 0 complexity | d58bdddb7487a1fec1b4c06a7c77cf4b MD5 | raw file
  1<!-- This document is neither complete nor finalized. 
  2     It is a bunch of blog posts cut and pasted together. 
  3     Taken from http://www.html5dtd.org/2011/05/31/html5-dtd-module-for-head/html5dtd.org  -->
  4
  5<!-- ========= head elements ========= -->
  6
  7<!ELEMENT head (title, meta*, link*, style?, script*)>
  8
  9<!ELEMENT title (#PCDATA)>
 10
 11<!ELEMENT meta EMPTY>
 12<!ATTLIST meta
 13 id          ID             #IMPLIED
 14 http-equiv  CDATA          #IMPLIED
 15 name        CDATA          #IMPLIED
 16 content     CDATA          #REQUIRED
 17 scheme      CDATA          #IMPLIED
 18 >
 19
 20<!ELEMENT link EMPTY>
 21<!ATTLIST link
 22 href        CDATA          #IMPLIED
 23 type        CDATA          #IMPLIED
 24 rel         CDATA          #IMPLIED
 25 rev         CDATA          #IMPLIED
 26 >
 27
 28<!ELEMENT script (#PCDATA)>
 29<!ATTLIST script
 30 type        CDATA        #REQUIRED
 31 src         CDATA        #IMPLIED
 32 defer       (defer)        #IMPLIED
 33 async       (async)        #IMPLIED
 34 >
 35
 36<!ELEMENT style (#PCDATA)>
 37<!ATTLIST style
 38 id          ID             #IMPLIED
 39 type        CDATA         #REQUIRED
 40 media       CDATA         #IMPLIED
 41 title       CDATA          #IMPLIED
 42 >
 43
 44<!-- $Id: html5-head.mod 8263 2011-05-31 16:42:03Z sm $ -->
 45<!-- ========= body ========= -->
 46<!-- taken from http://www.html5dtd.org/2011/06/01/html5-dtd-module-for-body/
 47 A body is
 48
 49 1. a sequence of block elements ("no structure" = "legacy html - headings")
 50 or
 51 2. a header, a sequence of sections and a footer ("common web page layout")
 52 with optional aside element ("blog layout")
 53 or
 54 3. sections with exactly one heading and subsections ("book-like structure")
 55-->
 56<!ELEMENT body         ( (%block;)
 57                         | (header, aside?, section+, footer)
 58                         | (%H5SectioningContent;)) >
 59
 60<!-- ========= structure elements ========= -->
 61
 62<!ELEMENT section      (%H5SectioningContent;) >
 63<!ATTLIST section
 64 %commonAttrs;
 65>
 66
 67<!ELEMENT header       ( (h1 | hgroup), (%block;)+ )>
 68<!ATTLIST header
 69 %commonAttrs;
 70>
 71
 72<!ELEMENT footer       (%block;)+>
 73<!ATTLIST footer
 74 %commonAttrs;
 75>
 76
 77<!ELEMENT aside        (%H5SectioningContent;) >
 78<!ATTLIST aside
 79 %commonAttrs;
 80>
 81
 82<!-- ========= headings ========= -->
 83
 84<!ELEMENT hgroup       ( h1, h2 ) >
 85<!ATTLIST hgroup
 86 %commonAttrs;
 87>
 88
 89<!ELEMENT h1           (#PCDATA)>
 90<!ATTLIST h1
 91 %commonAttrs;
 92>
 93
 94<!ELEMENT h2           (#PCDATA)>
 95<!ATTLIST h2
 96 %commonAttrs;
 97>
 98<!-- $Id: html5-body-structure.mod 8269 2011-06-01 13:07:55Z sm $ -->
 99
100Currently the parameter entity H5SectioningContent is defined as:
101
102<!ENTITY % H5SectioningContent "(h1 | hgroup),
103                                (
104                                 ((%block;)+, (section)*)
105                                 |
106                                 (section)+
107                                )">
108
109<!-- ========= audio/video elements ========= -->
110<!-- http://www.html5dtd.org/2011/06/07/html5-dtd-module-for-videoaudio/ -->
111<!ELEMENT video (source+, track*, div?)>
112<!ATTLIST video
113 poster    CDATA    #IMPLIED
114 preload    (none, metadata, auto) "metadata"
115 autoplay    (autoplay) #IMPLIED
116 mediagroup  CDATA       #IMPLIED
117 loop    (loop)       #IMPLIED
118 muted    (muted)       #IMPLIED
119 controls    (controls) #IMPLIED
120 width    CDATA       #IMPLIED
121 height    CDATA       #IMPLIED
122>
123
124<!ELEMENT audio (source+, track*, span?)>
125<!ATTLIST audio
126 preload    (none, metadata, auto) "metadata"
127 autoplay    (autoplay) #IMPLIED
128 mediagroup  CDATA       #IMPLIED
129 loop    (loop)       #IMPLIED
130 muted    (muted)       #IMPLIED
131 controls    (controls) #IMPLIED
132>
133
134<!ELEMENT source    EMPTY>
135<!ATTLIST source
136 src        CDATA    #REQUIRED
137 type    CDATA    #IMPLIED
138 media    CDATA    #IMPLIED
139>
140
141<!ELEMENT track        EMPTY>
142<!ATTLIST track
143 src        CDATA        #REQUIRED
144 kind    (subtitles | captions | descriptions | chapters | metadata)    #REQUIRED
145 srclang    CDATA             #IMPLIED
146 label    CDATA        #REQUIRED
147 default    (default)    #IMPLIED
148>
149
150<!-- $Id: html5-audio-video.mod 8273 2011-06-07 14:56:36Z sm $ -->