/[suikacvs]/markup/html/html5/spec-ja/data/syntax.dat
Suika

Diff of /markup/html/html5/spec-ja/data/syntax.dat

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.49 by apache, Fri Oct 24 15:51:40 2008 UTC revision 1.164 by apache, Sat Oct 25 09:11:39 2008 UTC
# Line 1  Line 1 
1    #pattern
2    <span class=secno>* </span>The HTML syntax
3  #pattern  #ja
4  <span class=secno>* </span>The HTML syntax  <span class=secno>$1 </span>HTML 構文
5  #ja  
6  <span class=secno>$1 </span>HTML 構文  #pattern
7    <span class=secno>* </span>Writing HTML documents
8  #pattern  #ja
9  <span class=secno>* </span>Writing HTML documents  <span class=secno>$1 </span>HTML 文書を書く
10  #ja  
11  <span class=secno>$1 </span>HTML 文書を書く  #en
   
 #en  
12  <em>This section only applies to documents, authoring tools, and markup  <em>This section only applies to documents, authoring tools, and markup
13     generators. In particular, it does not apply to conformance checkers;     generators. In particular, it does not apply to conformance checkers;
14     conformance checkers must use the requirements given in the next section     conformance checkers must use the requirements given in the next section
15     ("parsing HTML documents").</em>     ("parsing HTML documents").</em>
16  #ja  #ja
17  <em>この節は文書、著述ツール、マーク付け生成器にのみ適用されます。  <em>この節は文書、著述ツール、マーク付け生成器にのみ適用されます。
18  特に、適合性検査器には適用されません。  特に、適合性検査器には適用されません。
19  適合性検査器は次の節 (「HTML 文書の構文解析」) で与えられる要件を用いなければ[[MUST:なりません]]。</em>  適合性検査器は次の節 (「HTML 文書の構文解析」) で与えられる要件を用いなければ[[MUST:なりません]]。</em>
20    
21  #en  #en
22  Documents must consist of the following parts, in the given order:  Documents must consist of the following parts, in the given order:
23  #ja  #ja
24  文書は、次に示す部分により、次の順序で構成されなければ[[MUST:なりません]]。  文書は、次に示す部分により、次の順序で構成されなければ[[MUST:なりません]]。
25    
26  #en  #en
27  Optionally, a single U+FEFF BYTE ORDER MARK (BOM) character.  Optionally, a single U+FEFF BYTE ORDER MARK (BOM) character.
28  #ja  #ja
29  任意選択で、1つの U+FEFF BYTE ORDER MARK (BOM) 文字。  任意選択で、1つの U+FEFF BYTE ORDER MARK (BOM) 文字。
30    
31  #en  #en
32  Any number of <a href=#syntax-comments title=syntax-comments>comments</a>  Any number of <a href=#syntax-comments title=syntax-comments>comments</a>
33      and <a href=#space-character title="space character">space characters</a>.      and <a href=#space-character title="space character">space characters</a>.
34  #ja  #ja
35  任意の個数の<a href=#syntax-comments title=syntax-comments>注釈</a>と<a href=#space-character title="space character">間隔文字</a>。  任意の個数の<a href=#syntax-comments title=syntax-comments>注釈</a>と<a href=#space-character title="space character">間隔文字</a>。
36    
37  #en  #en
38  A <a href=#syntax-doctype title=syntax-doctype>DOCTYPE</a>.  A <a href=#syntax-doctype title=syntax-doctype>DOCTYPE</a>.
39  #ja  #ja
40  <a href=#syntax-doctype title=syntax-doctype>DOCTYPE</a>。  <a href=#syntax-doctype title=syntax-doctype>DOCTYPE</a>。
41    
42  #en  #en
43  The root element, in the form of an <code><a  The root element, in the form of an <code><a
44      href=#the-html-element>html</a></code> <a href=#dom-form-elements      href=#the-html-element>html</a></code> <a href=#dom-form-elements
45      title=syntax-elements>element</a>.      title=syntax-elements>element</a>.
46  #ja  #ja
47  根要素を <code><a  根要素を <code><a
48      href=#the-html-element>html</a></code> <a href=#dom-form-elements      href=#the-html-element>html</a></code> <a href=#dom-form-elements
49      title=syntax-elements>要素</a>の形で。      title=syntax-elements>要素</a>の形で。
50    
51  #en  #en
52  The various types of content mentioned above are described in the next  The various types of content mentioned above are described in the next
53     few sections.     few sections.
54  #ja  #ja
55  前述の各種の内容は、次の数個の節で説明します。  前述の各種の内容は、次の数個の節で説明します。
56    
57  #en  #en
58  In addition, there are some restrictions on how <span>character encoding  In addition, there are some restrictions on how <span>character encoding
59     declarations</span> are to be serialized, as discussed in the section on     declarations</span> are to be serialized, as discussed in the section on
60     that topic.     that topic.
61  #ja  #ja
62  加えて、<span>文字符号化宣言</span>をどう直列化するかについても、  加えて、<span>文字符号化宣言</span>をどう直列化するかについても、
63  それに関する節で説明した通り、いくつかの制限があります。  それに関する節で説明した通り、いくつかの制限があります。
64    
65  #en  #en
66  Space characters before the root <code><a href=#the-html-element>html</a></code>  Space characters before the root <code><a href=#the-html-element>html</a></code>
67      element, and space characters at the start of the <code><a      element, and space characters at the start of the <code><a
68      href=#the-html-element>html</a></code> element and before the <code><a      href=#the-html-element>html</a></code> element and before the <code><a
# Line 72  Space characters before the root <code>< Line 70  Space characters before the root <code><
70      is parsed; space characters <em>after</em> the root <code><a      is parsed; space characters <em>after</em> the root <code><a
71      href=#the-html-element>html</a></code> element will be parsed as if they were at      href=#the-html-element>html</a></code> element will be parsed as if they were at
72      the end of the <code><a href=#the-body-element>body</a></code> element. Thus,      the end of the <code><a href=#the-body-element>body</a></code> element. Thus,
73      space characters around the root element do not round-trip.      space characters around the root element do not round-trip.
74  #ja  #ja
75  根 <code><a href=#the-html-element>html</a></code> 要素の前の間隔文字や、  根 <code><a href=#the-html-element>html</a></code> 要素の前の間隔文字や、
76  <code><a  <code><a
77      href=#the-html-element>html</a></code> 要素のはじめで <code><a      href=#the-html-element>html</a></code> 要素のはじめで <code><a
# Line 82  Space characters before the root <code>< Line 80  Space characters before the root <code><
80      href=#the-html-element>html</a></code> 要素の<em>後</em>の間隔文字は、      href=#the-html-element>html</a></code> 要素の<em>後</em>の間隔文字は、
81  <code><a href=#the-body-element>body</a></code> 要素の終わりにあったものとして構文解析されます。  <code><a href=#the-body-element>body</a></code> 要素の終わりにあったものとして構文解析されます。
82  従って、根要素の近辺の間隔文字は往復しません。  従って、根要素の近辺の間隔文字は往復しません。
83    
84    
85  #en  #en
86  It is suggested that newlines be inserted after the DOCTYPE, after any  It is suggested that newlines be inserted after the DOCTYPE, after any
87      comments that are before the root element, after the <code><a      comments that are before the root element, after the <code><a
88      href=#the-html-element>html</a></code> element's start tag (if it is not <a      href=#the-html-element>html</a></code> element's start tag (if it is not <a
89      href=#syntax-tag-omission title=syntax-tag-omission>omitted</a>), and after any      href=#syntax-tag-omission title=syntax-tag-omission>omitted</a>), and after any
90      comments that are inside the <code><a href=#the-html-element>html</a></code>      comments that are inside the <code><a href=#the-html-element>html</a></code>
91      element but before the <code><a href=#the-head-element>head</a></code> element.      element but before the <code><a href=#the-head-element>head</a></code> element.
92  #ja  #ja
93  DOCTYPE の後、  DOCTYPE の後、
94  根要素の前の注釈がある場合はその後、  根要素の前の注釈がある場合はその後、
95  <code><a  <code><a
# Line 100  DOCTYPE の後、 Line 98  DOCTYPE の後、
98      href=#syntax-tag-omission title=syntax-tag-omission>省略</a>しない場合)、      href=#syntax-tag-omission title=syntax-tag-omission>省略</a>しない場合)、
99  <code><a href=#the-html-element>html</a></code> 要素中で  <code><a href=#the-html-element>html</a></code> 要素中で
100  <code><a href=#the-head-element>head</a></code> 要素の前に注釈がある場合にはその後には、  <code><a href=#the-head-element>head</a></code> 要素の前に注釈がある場合にはその後には、
101  改行を挿入することをおすすめします。  改行を挿入することをおすすめします。
102    
103  #en  #en
104  Many strings in the HTML syntax (e.g. the names of elements and their  Many strings in the HTML syntax (e.g. the names of elements and their
105     attributes) are case-insensitive, but only for characters in the ranges     attributes) are case-insensitive, but only for characters in the ranges
106     U+0041 .. U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z) and     U+0041 .. U+005A (LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z) and
107     U+0061 .. U+007A (LATIN SMALL LETTER A to LATIN SMALL LETTER Z). For     U+0061 .. U+007A (LATIN SMALL LETTER A to LATIN SMALL LETTER Z). For
108     convenience, in this section this is just referred to as     convenience, in this section this is just referred to as
109     "case-insensitive".     "case-insensitive".
110  #ja  #ja
111  HTML 構文中の多くの文字列 (例えば要素や属性の名前) は大文字と小文字を区別しませんが、  HTML 構文中の多くの文字列 (例えば要素や属性の名前) は大文字と小文字を区別しませんが、
112  区別しないのは範囲  区別しないのは範囲
113  U+0041 ~ U+005A (LATIN CAPITAL LETTER A ~ LATIN CAPITAL LETTER Z) と  U+0041 ~ U+005A (LATIN CAPITAL LETTER A ~ LATIN CAPITAL LETTER Z) と
114  範囲 U+0061 ~ U+007A (LATIN SMALL LETTER A ~ LATIN SMALL LETTER Z)  範囲 U+0061 ~ U+007A (LATIN SMALL LETTER A ~ LATIN SMALL LETTER Z)
115  の文字についてのみです。便宜上、この節ではこれを単に「大文字・小文字を区別しない」と呼びます。  の文字についてのみです。便宜上、この節ではこれを単に「大文字・小文字を区別しない」と呼びます。
116    
117    
118  #pattern  #pattern
119  <span class=secno>* </span>The DOCTYPE  <span class=secno>* </span>The DOCTYPE
120  #ja  #ja
121  <span class=secno>$1 </span>DOCTYPE  <span class=secno>$1 </span>DOCTYPE
122    
123  #en  #en
124  A <dfn id=syntax-doctype title=syntax-doctype>DOCTYPE</dfn> is a mostly  A <dfn id=syntax-doctype title=syntax-doctype>DOCTYPE</dfn> is a mostly
125     useless, but required, header.     useless, but required, header.
126  #ja  #ja
127  <dfn id=syntax-doctype title=syntax-doctype>DOCTYPE</dfn> はほとんど無意味ですが、  <dfn id=syntax-doctype title=syntax-doctype>DOCTYPE</dfn> はほとんど無意味ですが、
128  [[REQUIRED:必須]]の頭部です。  [[REQUIRED:必須]]の頭部です。
129    
130  #en  #en
131  DOCTYPEs are required for legacy reasons. When omitted,  DOCTYPEs are required for legacy reasons. When omitted,
132     browsers tend to use a different rendering mode that is incompatible with     browsers tend to use a different rendering mode that is incompatible with
133     some specifications. Including the DOCTYPE in a document ensures that the     some specifications. Including the DOCTYPE in a document ensures that the
134     browser makes a best-effort attempt at following the relevant     browser makes a best-effort attempt at following the relevant
135     specifications.     specifications.
136  #ja  #ja
137  DOCTYPE は遺物的な理由で[[REQUIRED:必須]]です。  DOCTYPE は遺物的な理由で[[REQUIRED:必須]]です。
138  省略すると、ブラウザはいくつかの仕様書と非互換な異なるレンダリング・モードを使おうとします。  省略すると、ブラウザはいくつかの仕様書と非互換な異なるレンダリング・モードを使おうとします。
139  DOCTYPE を文書に含めることによってブラウザに関係する仕様書に従うよう最善の努力を試みさせるようにします。  DOCTYPE を文書に含めることによってブラウザに関係する仕様書に従うよう最善の努力を試みさせるようにします。
140    
141  #en  #en
142  A DOCTYPE must consist of the following characters, in this order:  A DOCTYPE must consist of the following characters, in this order:
143  #ja  #ja
144  DOCTYPE は、次の文字により次の順序で構成されなければ[[MUST:なりません]]。  DOCTYPE は、次の文字により次の順序で構成されなければ[[MUST:なりません]]。
145    
146  #en  #en
147  A U+003C LESS-THAN SIGN (<code>&lt;</code>) character.  A U+003C LESS-THAN SIGN (<code>&lt;</code>) character.
148  #ja  #ja
149  U+003C LESS-THAN SIGN (<code>&lt;</code>) 文字。  U+003C LESS-THAN SIGN (<code>&lt;</code>) 文字。
150    
151  #en  #en
152  A U+0021 EXCLAMATION MARK (<code>!</code>) character.  A U+0021 EXCLAMATION MARK (<code>!</code>) character.
153  #ja  #ja
154  U+0021 EXCLAMATION MARK (<code>!</code>) 文字。  U+0021 EXCLAMATION MARK (<code>!</code>) 文字。
155    
156  #en  #en
157  A U+0044 LATIN CAPITAL LETTER D or U+0064 LATIN SMALL LETTER D  A U+0044 LATIN CAPITAL LETTER D or U+0064 LATIN SMALL LETTER D
158      character.      character.
159  #ja  #ja
160  U+0044 LATIN CAPITAL LETTER D 文字か U+0064 LATIN SMALL LETTER D 文字。  U+0044 LATIN CAPITAL LETTER D 文字か U+0064 LATIN SMALL LETTER D 文字。
161    
162  #en  #en
163  A U+004F LATIN CAPITAL LETTER O or U+006F LATIN SMALL LETTER O  A U+004F LATIN CAPITAL LETTER O or U+006F LATIN SMALL LETTER O
164      character.      character.
165  #ja  #ja
166  U+004F LATIN CAPITAL LETTER O 文字か U+006F LATIN SMALL LETTER O 文字。  U+004F LATIN CAPITAL LETTER O 文字か U+006F LATIN SMALL LETTER O 文字。
167    
168  #en  #en
169  A U+0043 LATIN CAPITAL LETTER C or U+0063 LATIN SMALL LETTER C  A U+0043 LATIN CAPITAL LETTER C or U+0063 LATIN SMALL LETTER C
170      character.      character.
171  #ja  #ja
172  U+0043 LATIN CAPITAL LETTER C 文字か U+0063 LATIN SMALL LETTER C 文字。  U+0043 LATIN CAPITAL LETTER C 文字か U+0063 LATIN SMALL LETTER C 文字。
173    
174  #en  #en
175  A U+0054 LATIN CAPITAL LETTER T or U+0074 LATIN SMALL LETTER T  A U+0054 LATIN CAPITAL LETTER T or U+0074 LATIN SMALL LETTER T
176      character.      character.
177  #ja  #ja
178  U+0054 LATIN CAPITAL LETTER T 文字か U+0074 LATIN SMALL LETTER T 文字。  U+0054 LATIN CAPITAL LETTER T 文字か U+0074 LATIN SMALL LETTER T 文字。
179    
180  #en  #en
181  A U+0059 LATIN CAPITAL LETTER Y or U+0079 LATIN SMALL LETTER Y  A U+0059 LATIN CAPITAL LETTER Y or U+0079 LATIN SMALL LETTER Y
182      character.      character.
183  #ja  #ja
184  U+0059 LATIN CAPITAL LETTER Y 文字か U+0079 LATIN SMALL LETTER Y 文字。  U+0059 LATIN CAPITAL LETTER Y 文字か U+0079 LATIN SMALL LETTER Y 文字。
185    
186  #en  #en
187  A U+0050 LATIN CAPITAL LETTER P or U+0070 LATIN SMALL LETTER P  A U+0050 LATIN CAPITAL LETTER P or U+0070 LATIN SMALL LETTER P
188      character.      character.
189  #ja  #ja
190  U+0050 LATIN CAPITAL LETTER P 文字か U+0070 LATIN SMALL LETTER P 文字。  U+0050 LATIN CAPITAL LETTER P 文字か U+0070 LATIN SMALL LETTER P 文字。
191    
192    
193  #en  #en
194  A U+0045 LATIN CAPITAL LETTER E or U+0065 LATIN SMALL LETTER E  A U+0045 LATIN CAPITAL LETTER E or U+0065 LATIN SMALL LETTER E
195      character.      character.
196  #ja  #ja
197  U+0045 LATIN CAPITAL LETTER E 文字か U+0065 LATIN SMALL LETTER E 文字。  U+0045 LATIN CAPITAL LETTER E 文字か U+0065 LATIN SMALL LETTER E 文字。
198    
199  #en  #en
200  One or more <a href=#space-character title="space character">space  One or more <a href=#space-character title="space character">space
201      characters</a>.      characters</a>.
202  #ja  #ja
203  1つ以上の<a href=#space-character title="space character">間隔文字</a>。  1つ以上の<a href=#space-character title="space character">間隔文字</a>。
204    
205  #en  #en
206  A U+0048 LATIN CAPITAL LETTER H or U+0068 LATIN SMALL LETTER H  A U+0048 LATIN CAPITAL LETTER H or U+0068 LATIN SMALL LETTER H
207      character.      character.
208  #ja  #ja
209  U+0048 LATIN CAPITAL LETTER H 文字か U+0068 LATIN SMALL LETTER H 文字。  U+0048 LATIN CAPITAL LETTER H 文字か U+0068 LATIN SMALL LETTER H 文字。
210    
211    
212  #en  #en
213  A U+004D LATIN CAPITAL LETTER M or U+006D LATIN SMALL LETTER M  A U+004D LATIN CAPITAL LETTER M or U+006D LATIN SMALL LETTER M
214      character.      character.
215  #ja  #ja
216  U+004D LATIN CAPITAL LETTER M 文字か U+006D LATIN SMALL LETTER M 文字。  U+004D LATIN CAPITAL LETTER M 文字か U+006D LATIN SMALL LETTER M 文字。
217    
218  #en  #en
219  A U+004C LATIN CAPITAL LETTER L or U+006C LATIN SMALL LETTER L  A U+004C LATIN CAPITAL LETTER L or U+006C LATIN SMALL LETTER L
220      character.      character.
221  #ja  #ja
222  U+004C LATIN CAPITAL LETTER L 文字か U+006C LATIN SMALL LETTER L 文字。  U+004C LATIN CAPITAL LETTER L 文字か U+006C LATIN SMALL LETTER L 文字。
223    
224  #en  #en
225  Zero or more <a href=#space-character title="space character">space  Zero or more <a href=#space-character title="space character">space
226      characters</a>.      characters</a>.
227  #ja  #ja
228  零個以上の<a href=#space-character title="space character">間隔文字</a>。  零個以上の<a href=#space-character title="space character">間隔文字</a>。
229    
230  #en  #en
231  A U+003E GREATER-THAN SIGN (<code>&gt;</code>) character.  A U+003E GREATER-THAN SIGN (<code>&gt;</code>) character.
232  #ja  #ja
233  U+003E GREATER-THAN SIGN (<code>&gt;</code>) 文字。  U+003E GREATER-THAN SIGN (<code>&gt;</code>) 文字。
234    
235  #en  #en
236  In other words, <code>&lt;!DOCTYPE HTML></code>,  In other words, <code>&lt;!DOCTYPE HTML></code>,
237     case-insensitively.     case-insensitively.
238  #ja  #ja
239  つまり、大文字または小文字の <code>&lt;!DOCTYPE HTML></code> です。  つまり、大文字または小文字の <code>&lt;!DOCTYPE HTML></code> です。
240    
241  #pattern  #pattern
242  <span class=secno>* </span>Elements  <span class=secno>* </span>Elements
243  #ja  #ja
244  <span class=secno>$1 </span>要素  <span class=secno>$1 </span>要素
245    
246  #en  #en
247  There are five different kinds of <dfn id=dom-form-elements  There are five different kinds of <dfn id=dom-form-elements
248     title=syntax-elements>elements</dfn>: void elements, CDATA elements,     title=syntax-elements>elements</dfn>: void elements, CDATA elements,
249     RCDATA elements, foreign elements, and normal elements.     RCDATA elements, foreign elements, and normal elements.
250  #ja  #ja
251  <dfn id=dom-form-elements  <dfn id=dom-form-elements
252     title=syntax-elements>要素</dfn>には5種類あります。     title=syntax-elements>要素</dfn>には5種類あります。
253  空隙要素、 CDATA 要素、 RCDATA 要素、外来要素、通常要素です。  空隙要素、 CDATA 要素、 RCDATA 要素、外来要素、通常要素です。
254    
255  #en  #en
256  <dfn id=void-elements>Void elements</dfn>  <dfn id=void-elements>Void elements</dfn>
257  #ja  #ja
258  <dfn id=void-elements>空隙要素</dfn>  <dfn id=void-elements>空隙要素</dfn>
259    
260  #en  #en
261  CDATA elements  CDATA elements
262  #ja  #ja
263  CDATA 要素  CDATA 要素
264    
265  #en  #en
266  RCDATA elements  RCDATA elements
267  #ja  #ja
268  RCDATA 要素  RCDATA 要素
269    
270  #en  #en
271  Foreign elements  Foreign elements
272  #ja  #ja
273  外来要素  外来要素
274    
275  #en  #en
276  Elements from the <a href=#mathml-namespace>MathML namespace</a> <!--XXXSVG  Elements from the <a href=#mathml-namespace>MathML namespace</a> <!--XXXSVG
277     and the <span>SVG namespace</span>.     and the <span>SVG namespace</span>.
278  #ja  #ja
279  <a href=#mathml-namespace>MathML 名前空間</a>からの要素。<!--XXXSVG  <a href=#mathml-namespace>MathML 名前空間</a>からの要素。<!--XXXSVG
280     and the <span>SVG namespace</span>.     and the <span>SVG namespace</span>.-->
281    
282  #en  #en
283  Normal elements  Normal elements
284  #ja  #ja
285  通常要素  通常要素
286    
287  #en  #en
288  All other allowed <a href=#html-elements>HTML elements</a> are  All other allowed <a href=#html-elements>HTML elements</a> are
289      normal elements.      normal elements.
290  #ja  #ja
291  他の全ての認められている<a href=#html-elements>HTML 要素</a>は通常要素です。  他の全ての認められている<a href=#html-elements>HTML 要素</a>は通常要素です。
292    
293  #en  #en
294  The root element, in the form of an <code><a href=#the-html-element>html</a></code> <a href=#syntax-elements title=syntax-elements>element</a>.  The root element, in the form of an <code><a href=#the-html-element>html</a></code> <a href=#syntax-elements title=syntax-elements>element</a>.
295  #ja  #ja
296  根要素を、 <code><a href=#the-html-element>html</a></code> <a href=#syntax-elements title=syntax-elements>要素</a>として。  根要素を、 <code><a href=#the-html-element>html</a></code> <a href=#syntax-elements title=syntax-elements>要素</a>として。
297    
298  #en  #en
299  Optionally, a <a href=#doctype-legacy-string>DOCTYPE legacy string</a> (defined below).  Optionally, a <a href=#doctype-legacy-string>DOCTYPE legacy string</a> (defined below).
300  #ja  #ja
301  任意選択で、 <a href=#doctype-legacy-string>DOCTYPE 遺物文字列</a> (後で定義します)。  任意選択で、 <a href=#doctype-legacy-string>DOCTYPE 遺物文字列</a> (後で定義します)。
302    
303  #en  #en
304  In other words, <code>&lt;!DOCTYPE HTML&gt;</code>,  In other words, <code>&lt;!DOCTYPE HTML&gt;</code>,
305    case-insensitively.    case-insensitively.
306  #ja  #ja
307  すなわち、大文字または小文字の <code>&lt;!DOCTYPE HTML&gt;</code>。  すなわち、大文字または小文字の <code>&lt;!DOCTYPE HTML&gt;</code>。
308    
309  #en  #en
310  For the purposes of XSLT generators that cannot output HTML  For the purposes of XSLT generators that cannot output HTML
311    markup without a DOCTYPE, a <dfn id=doctype-legacy-string>DOCTYPE legacy string</dfn> may be    markup without a DOCTYPE, a <dfn id=doctype-legacy-string>DOCTYPE legacy string</dfn> may be
312    inserted into the DOCTYPE (in the position defined above). This    inserted into the DOCTYPE (in the position defined above). This
313    string must consist of:    string must consist of:
314  #ja  #ja
315  DOCTYPE なしの HTML マーク付けを出力できない XSLT 生成器のため、  DOCTYPE なしの HTML マーク付けを出力できない XSLT 生成器のため、
316  <dfn id=doctype-legacy-string>DOCTYPE 遺物文字列</dfn>を  <dfn id=doctype-legacy-string>DOCTYPE 遺物文字列</dfn>を
317  DOCTYPE (の前述の位置) に挿入して[[MAY:構いません]]。  DOCTYPE (の前述の位置) に挿入して[[MAY:構いません]]。
 この文字列は次のものから構成されなければ[[MUST:なりません]]。  
   
 #pattern  
 A * or * character.  
 #ja  
 $1 文字または * 文字。  
318    この文字列は次のものから構成されなければ[[MUST:なりません]]。
319    
320    #pattern
321    A * or * character.
322    #ja
323    $1 文字か $2 文字。
324    
325    #en
326    The literal string "<code title="">XSLT-compat</code>".
327    #ja
328    生の文字列「<code title="">XSLT-compat</code>」。
329    
330    #en
331    The same character as in item 9 (a matching U+0022 QUOTATION MARK or U+0027 APOSTROPHE character).
332    #ja
333    項目9と同じ文字 (U+0022 QUOTATION MARK 文字または U+0027 APOSTROPHE 文字の一致する方)。
334    
335    #en
336    In other words, <code>&lt;!DOCTYPE HTML PUBLIC
337      "XSLT-compat"&gt;</code> or <code>&lt;!DOCTYPE HTML PUBLIC
338      'XSLT-compat'&gt;</code>, case-insensitively except for the bit in
339      quotes.
340    #ja
341    すなわち、引用符内以外は大文字か小文字の <code>&lt;!DOCTYPE HTML PUBLIC
342      "XSLT-compat"&gt;</code> または <code>&lt;!DOCTYPE HTML PUBLIC
343      'XSLT-compat'&gt;</code>。
344    
345    #en
346    The <a href=#doctype-legacy-string>DOCTYPE legacy string</a> should not be used unless
347      the document is generated from XSLT.
348    #ja
349    <a href=#doctype-legacy-string>DOCTYPE 遺物文字列</a>は XSLT
350    で生成された文書を除き使用する[[SHOULD NOT:べきではありません]]。
351    
352    #en
353    There are five different kinds of <dfn id=syntax-elements title=syntax-elements>elements</dfn>: void elements, CDATA
354      elements, RCDATA elements, foreign elements, and normal
355      elements.
356    #ja
357    <dfn id=syntax-elements title=syntax-elements>要素</dfn>には、
358    空隙要素、 CDATA 要素、 RCDATA 要素、外来要素、通常要素の5つの異なる種類があります。
359    
360    #en
361    <dfn id=syntax-tags title=syntax-tags>Tags</dfn> are used to delimit the start
362      and end of elements in the markup. CDATA, RCDATA, and normal
363      elements have a <a href=#syntax-start-tags title=syntax-start-tags>start tag</a> to
364      indicate where they begin, and an <a href=#syntax-end-tags title=syntax-end-tags>end
365      tag</a> to indicate where they end. The start and end tags of
366      certain normal elements can be <a href=#syntax-tag-omission title=syntax-tag-omission>omitted</a>, as described
367      later. Those that cannot be omitted must not be omitted. <a href=#void-elements>Void
368      elements</a> only have a start tag; end tags must not be
369      specified for void elements. Foreign elements must either have a
370      start tag and an end tag, or a start tag that is marked as
371      self-closing, in which case they must not have an end tag.
372    #ja
373    <dfn id=syntax-tags title=syntax-tags>タグ</dfn>は、
374    マーク付けにおいて要素の開始と終了を区切るために使います。
375    CDATA 要素、 RCDATA 要素、通常要素は、
376    その始まる位置を示す<a href=#syntax-start-tags title=syntax-start-tags>開始タグ</a>と、
377    その終わる位置を示す<a href=#syntax-end-tags title=syntax-end-tags>終了タグ</a>を持ちます。
378    特定の通常要素の開始タグと終了タグは、
379    後述の通り<a href=#syntax-tag-omission title=syntax-tag-omission>省略</a>することができます。
380    省略できないものは省略しては[[MUST NOT:なりません]]。
381    <a href=#void-elements>空隙要素</a>は開始タグのみを持ちます。
382    空隙要素に終了タグを指定しては[[MUST NOT:なりません]]。
383    外来要素は開始タグと終了タグを持つか、または開始タグを自己閉塞と印付けするかのいずれかで[[MUST:なければなりらず]]、
384    後者の場合終了タグを持っては[[MUST NOT:なりません]]。
385    
386    
387    #en
388    The contents of the element must be placed between just after the
389      start tag (which <a href=#syntax-tag-omission title=syntax-tag-omission>might be implied,
390      in certain cases</a>) and just before the end tag (which again,
391      <a href=#syntax-tag-omission title=syntax-tag-omission>might be implied in certain
392      cases</a>). The exact allowed contents of each individual element
393      depends on the content model of that element, as described earlier
394      in this specification. Elements must not contain content that their
395      content model disallows. In addition to the restrictions placed on
396      the contents by those content models, however, the five types of
397      elements have additional <em>syntactic</em> requirements.
398    #ja
399    要素の内容は開始タグ (これは<a href=#syntax-tag-omission title=syntax-tag-omission>場合によっては暗示的なものかもしれません</a>。)
400    の直後と終了タグ (これも<a href=#syntax-tag-omission title=syntax-tag-omission>場合によっては暗示的なものかもしれません</a>。)
401    の直前の間に配置しなければ[[MUST:なりません]]。
402    各要素それぞれで認められる内容は正確には、この仕様書の先の方で説明した当該要素の内容モデルに依存します。
403    要素はその内容モデルが禁じた内容を含んではなりません。しかも、
404    各要素の内容モデルによって内容に課した制約に加えて、5種類の要素には追加の<em>構文的</em>要件があります。
405    
406    #en
407    <a href=#void-elements>Void elements</a> can't have any contents (since there's
408      no end tag, no content can be put between the start tag and the end
409      tag).
410    #ja
411    <a href=#void-elements>空隙要素</a>は内容を持つことができません
412    (終了タグがないので、内容を開始タグと終了タグの間に置くことができません)。
413    
414    #en
415    CDATA elements can have <a href=#syntax-text title=syntax-text>text</a>,
416      though it has <a href=#cdata-rcdata-restrictions>restrictions</a>
417      described below.
418    #ja
419    CDATA 要素は<a href=#syntax-text title=syntax-text>テキスト</a>を持つことができますが、
420    後述の<a href=#cdata-rcdata-restrictions>制約</a>があります。
421    
422    #en
423    RCDATA elements can have <a href=#syntax-text title=syntax-text>text</a>
424      and <a href=#syntax-charref title=syntax-charref>character references</a>, but
425      the text must not contain an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>.
426      There are also <a href=#cdata-rcdata-restrictions>further
427      restrictions</a> described below.
428    #ja
429    RCDATA 要素は<a href=#syntax-text title=syntax-text>テキスト</a>と<a href=#syntax-charref title=syntax-charref>文字参照</a>を持つことができますが、
430    テキストは<a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</a>を含んでは[[MUST NOT:なりません]]。
431    後述の<a href=#cdata-rcdata-restrictions>追加制約</a>もあります。
432    
433    #en
434    Foreign elements whose start tag is marked as self-closing can't
435      have any contents (since, again, as there's no end tag, no content
436      can be put between the start tag and the end tag). Foreign elements
437      whose start tag is <em>not</em> marked as self-closing can have
438      <a href=#syntax-text title=syntax-text>text</a>, <a href=#syntax-charref title=syntax-charref>character references</a>, <a href=#syntax-cdata title=syntax-cdata>CDATA sections</a>, other <a href=#syntax-elements title=syntax-elements>elements</a>, and <a href=#syntax-comments title=syntax-comments>comments</a>, but the text must not
439      contain the character U+003C LESS-THAN SIGN (<code>&lt;</code>) or
440      an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous
441      ampersand</a>.
442    #ja
443    開始タグが自己閉塞と印付けされた外来要素は内容を持つことができません
444    (やはり、終了タグがないため、内容を開始タグと終了タグの間に置くことができないからです)。
445    開始タグが自己閉塞と印付けされて<em>いない</em>外来要素は<a href=#syntax-text title=syntax-text>テキスト</a>、
446    <a href=#syntax-charref title=syntax-charref>文字参照</a>、
447    <a href=#syntax-cdata title=syntax-cdata>CDATA 区間</a>、
448    他の<a href=#syntax-elements title=syntax-elements>要素</a>、
449    <a href=#syntax-comments title=syntax-comments>注釈</a>を持つことができますが、
450    テキストは文字 U+003C LESS-THAN SIGN (<code>&lt;</code>)
451    や<a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</a>を含んでは[[MUST NOT:なりません]]。
452    
453    #en
454    Normal elements can have <a href=#syntax-text title=syntax-text>text</a>,
455      <a href=#syntax-charref title=syntax-charref>character references</a>, other
456      <a href=#syntax-elements title=syntax-elements>elements</a>, and <a href=#syntax-comments title=syntax-comments>comments</a>, but the text must not
457      contain the character U+003C LESS-THAN SIGN (<code>&lt;</code>) or
458      an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous
459      ampersand</a>. Some normal elements also have <a href=#element-restrictions>yet more restrictions</a> on what
460      content they are allowed to hold, beyond the restrictions imposed by
461      the content model and those described in this paragraph. Those
462      restrictions are described below.
463    #ja
464    通常要素は<a href=#syntax-text title=syntax-text>テキスト</a>、
465    <a href=#syntax-charref title=syntax-charref>文字参照</a>、
466    他の<a href=#syntax-elements title=syntax-elements>要素</a>、
467    <a href=#syntax-comments title=syntax-comments>注釈</a>を持つことができますが、
468    テキストは文字 U+003C LESS-THAN SIGN (<code>&lt;</code>)
469    や<a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</a>を含んでは[[MUST NOT:なりません]]。
470    いくつかの通常要素は、保持することが認められる内容に関して、
471    内容モデルにより課される制約やこの段落で説明した制約に加え、
472    <a href=#element-restrictions>更に追加の制約</a>をも有します。
473    その制約については後述します。
474    
475    #en
476    Tags contain a <dfn id=syntax-tag-name title=syntax-tag-name>tag name</dfn>,
477      giving the element's name. HTML elements all have names that only
478      use characters in the range U+0030 DIGIT ZERO ..  U+0039 DIGIT NINE,
479      U+0061 LATIN SMALL LETTER A .. U+007A LATIN SMALL LETTER Z, U+0041
480      LATIN CAPITAL LETTER A .. U+005A LATIN CAPITAL LETTER Z, and U+002D
481      HYPHEN-MINUS (<code>-</code>). In the HTML syntax, tag names may be
482      written with any mix of lower- and uppercase letters that, when
483      converted to all-lowercase, matches the element's tag name; tag
484      names are case-insensitive.
485    #ja
486    タグは<dfn id=syntax-tag-name title=syntax-tag-name>タグ名</dfn>を持ち、
487    これが要素の名前を与えます。
488    HTML 要素はすべて、範囲 U+0030 DIGIT ZERO ~ U+0039 DIGIT NINE、
489    U+0061 LATIN SMALL LETTER A ~ U+007A LATIN SMALL LETTER Z、U+0041
490      LATIN CAPITAL LETTER A ~ U+005A LATIN CAPITAL LETTER Z、 U+002D
491      HYPHEN-MINUS (<code>-</code>) の文字のみを使った名前を持ちます。
492    HTML 構文では、タグ名はすべて小文字に変換した時に要素のタグ名に一致するような任意の小文字と大文字の組み合わせで書いて[[MAY:構いません]]。
493    つまり、タグ名は大文字・小文字を区別しません。
494    
495    
496    #pattern
497    <span class=secno>* </span>Start tags
498    #ja
499    <span class=secno>$1 </span>開始タグ
500    
501    #en
502    <dfn id=syntax-start-tags title=syntax-start-tags>Start tags</dfn> must have the
503      following format:
504    #ja
505    <dfn id=syntax-start-tags title=syntax-start-tags>開始タグ</dfn>は次の書式でなければ[[MUST:なりません]]。
506    
507    #en
508    The first character of a start tag must be a U+003C LESS-THAN
509       SIGN (<code>&lt;</code>).
510    #ja
511    開始タグの最初の文字は U+003C LESS-THAN
512       SIGN (<code>&lt;</code>) でなければ[[MUST:なりません]]。
513    
514    #en
515    The next few characters of a start tag must be the element's
516       <a href=#syntax-tag-name title=syntax-tag-name>tag name</a>.
517    #ja
518    開始タグの次の数文字は要素の<a href=#syntax-tag-name title=syntax-tag-name>タグ名</a>でなければ[[MUST:なりません]]。
519    
520    #en
521    If there are to be any attributes in the next step, there must
522       first be one or more <a href=#space-character title="space character">space
523       characters</a>.
524    #ja
525    次の段階で属性が存在する場合には、まず1文字以上の<a href=#space-character title="space character">間隔文字</a>がなければ[[MUST:なりません]]。
526    
527    #en
528    Then, the start tag may have a number of attributes, the <a href=#syntax-attributes title=syntax-attributes>syntax for which</a> is described
529       below. Attributes may be separated from each other by one or more
530       <a href=#space-character title="space character">space characters</a>.
531    #ja
532    その後、開始タグは後述の<a href=#syntax-attributes title=syntax-attributes>構文</a>に沿った数々の属性を持って[[MAY:構いません]]。
533    属性は1つ以上の<a href=#space-character title="space character">間隔文字</a>で互いに分離して[[MAY:構いません]]。
534    
535    #en
536    After the attributes, there may be one or more <a href=#space-character title="space character">space characters</a>. (Some attributes
537       are required to be followed by a space. See the <a href=#syntax-attributes title=syntax-attributes>attributes section</a> below.)
538    #ja
539    属性の後に、1文字以上の<a href=#space-character title="space character">間隔文字</a>があって[[MAY:構いません]]。
540    (いくつかの属性の後には間隔が[[REQUIRED:必須]]です。後述の<a href=#syntax-attributes title=syntax-attributes>属性の節</a>をご覧ください。)
541    
542    #en
543    Then, if the element is one of the <a href=#void-elements>void elements</a>,
544       or if the element is a foreign element, then there may be a single
545       U+002F SOLIDUS (<code>/</code>) character. This character has no
546       effect on void elements, but on foreign elements it marks the start
547       tag as self-closing.
548    #ja
549    要素が<a href=#void-elements>空隙要素</a>の1つである場合や、
550    要素が外来要素である場合、 U+002F SOLIDUS (<code>/</code>) 文字が1つあっても[[MAY:構いません]]。
551    この文字は空隙要素にあっては何の効果もありませんが、
552    外来要素にあっては開始タグを自己閉塞と印付けします。
553    
554    #en
555    Finally, start tags must be closed by a U+003E GREATER-THAN
556       SIGN (<code>&gt;</code>) character.
557    #ja
558    最後に、開始タグは U+003E GREATER-THAN
559       SIGN (<code>&gt;</code>) もjいで閉じなければ[[MUST:なりません]]。
560    
561    #pattern
562    <span class=secno>* </span>End tags
563    #ja
564    <span class=secno>$1 </span>終了タグ
565    
566    #en
567    <dfn id=syntax-end-tags title=syntax-end-tags>End tags</dfn> must have the
568      following format:
569    #ja
570    <dfn id=syntax-end-tags title=syntax-end-tags>終了タグ</dfn>は次の書式でなければ[[MUST:なりません]]。
571    
572    #en
573    The first character of an end tag must be a U+003C LESS-THAN
574       SIGN (<code>&lt;</code>).
575    #ja
576    終了タグの最初の文字は U+003C LESS-THAN
577       SIGN (<code>&lt;</code>) でなければ[[MUST:なりません]]。
578    
579    #en
580    The second character of an end tag must be a U+002F SOLIDUS
581       (<code>/</code>).
582    #ja
583    終了タグの2番目の文字は U+002F SOLIDUS
584       (<code>/</code>) でなければ[[MUST:なりません]]。
585    
586    #en
587    The next few characters of an end tag must be the element's
588       <a href=#syntax-tag-name title=syntax-tag-name>tag name</a>.
589    #ja
590    終了タグの次の数文字は要素の<a href=#syntax-tag-name title=syntax-tag-name>タグ名</a>でなければ[[MUST:なりません]]。
591    
592    #en
593    After the tag name, there may be one or more <a href=#space-character title="space
594       character">space characters</a>.
595    #ja
596    タグ名の後、1文字以上の<a href=#space-character title="space
597       character">間隔文字</a>があって[[MAY:構いません]]。
598    
599    #en
600    Finally, end tags must be closed by a U+003E GREATER-THAN
601       SIGN (<code>&gt;</code>) character.
602    #ja
603    最後に、終了タグは U+003E GREATER-THAN
604       SIGN (<code>&gt;</code>) 文字により閉じなければ[[MUST:なりません]]。
605    
606    #pattern
607    <span class=secno>* </span>Attributes
608    #ja
609    <span class=secno>$1 </span>属性
610    
611    #en
612    <dfn id=syntax-start-tags title=syntax-start-tags>Start tags</dfn> must have the
613      following format:
614    #ja
615    <dfn id=syntax-start-tags title=syntax-start-tags>開始タグ</dfn>は次の書式でなければ[[MUST:なりません]]。
616      following format:
617    
618    #en
619    <dfn id=syntax-attributes title=syntax-attributes>Attributes</dfn> for an element
620      are expressed inside the element's start tag.
621    #ja
622    要素の<dfn id=syntax-attributes title=syntax-attributes>属性</dfn>は、
623    当該要素の開始タグの内側で表現されます。
624    
625    #en
626    Attributes have a name and a value. <dfn id=syntax-attribute-name title=syntax-attribute-name>Attribute names</dfn> must consist of
627      one or more characters other than the <a href=#space-character title="space
628      character">space characters</a>, U+0000 NULL, U+0022 QUOTATION
629      MARK ("), U+0027 APOSTROPHE ('), U+003E GREATER-THAN SIGN
630      (&gt;), U+002F SOLIDUS (/), and U+003D EQUALS SIGN (=) characters,
631      the control characters, and any characters that are not defined by
632      Unicode. In the HTML syntax, attribute names may be written with any
633      mix of lower- and uppercase letters that are an <a href=#ascii-case-insensitive>ASCII
634      case-insensitive</a> match for the attribute's name.
635    #ja
636    属性は名前と値を持ちます。
637    <dfn id=syntax-attribute-name title=syntax-attribute-name>属性名</dfn>は、
638    <a href=#space-character title="space
639      character">間隔文字</a>、U+0000 NULL、U+0022 QUOTATION
640      MARK (")、U+0027 APOSTROPHE (')、U+003E GREATER-THAN SIGN
641      (&gt;)、U+002F SOLIDUS (/)、U+003D EQUALS SIGN (=) のいずれかの文字、
642    制御文字、 Unicode で定義されていない文字以外の文字1文字以上で構成されなければ[[MUST:なりません]]。
643    HTML 構文では、属性名は当該属性の名前に
644    <a href=#ascii-case-insensitive>ASCII
645    大文字・小文字不区別</a>で一致する任意の小文字・大文字の組み合わせで書いて[[MAY:構いません]]。
646    
647    #en
648    <dfn id=syntax-attribute-value title=syntax-attribute-value>Attribute values</dfn> are a
649      mixture of <a href=#syntax-text title=syntax-text>text</a> and <a href=#syntax-charref title=syntax-charref>character references</a>, except with the
650      additional restriction that the text cannot contain an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>.
651    #ja
652    <dfn id=syntax-attribute-value title=syntax-attribute-value>属性値</dfn>は<a href=#syntax-text title=syntax-text>テキスト</a>と<a href=#syntax-charref title=syntax-charref>文字参照</a>の混合ですが、テキストが<a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</a>を含むことができないとの追加の制限があります。
653    
654    #en
655    Attributes can be specified in four different ways:
656    #ja
657    属性は4種類の方法で指定できます。
658    
659    #en
660    Empty attribute syntax
661    #ja
662    空属性構文
663    
664    #en
665    Just the <a href=#syntax-attribute-name title=syntax-attribute-name>attribute
666        name</a>.
667    #ja
668    <a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>のみです。
669    
670    #en
671    In the following example, the <code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> attribute is given with
672         the empty attribute syntax:
673    #ja
674    次の例では、<code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code>
675    属性が空属性構文により与えられています。
676    
677    #en
678    If an attribute using the empty attribute syntax is to be
679        followed by another attribute, then there must be a <a href=#space-character>space
680        character</a> separating the two.
681    #ja
682    空属性構文を用いる属性の後に別の属性が続く場合、
683    両者を分離する<a href=#space-character>間隔文字</a>がなければ[[MUST:なりません]]。
684    
685    #en
686    Unquoted attribute value syntax
687    #ja
688    非引用属性値構文
689    
690    #en
691    The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>,
692        followed by zero or more <a href=#space-character title="space character">space
693        characters</a>, followed by a single U+003D EQUALS SIGN
694        character, followed by zero or more <a href=#space-character title="space
695        character">space characters</a>, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
696        addition to the requirements given above for attribute values,
697        must not contain any literal <a href=#space-character title="space character">space
698        characters</a>, any U+0022 QUOTATION MARK (<code>"</code>)
699        characters, U+0027 APOSTROPHE (<code>'</code>) characters,
700        U+003D EQUALS SIGN (<code>=</code>) characters, or U+003E
701        GREATER-THAN SIGN (<code>&gt;</code>) characters, and must not be
702        the empty string.
703    #ja
704    <a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後に零文字以上の<a href=#space-character title="space character">間隔文字</a>があり、
705    その後に1文字の U+003D EQUALS SIGN 文字があり、その後に零文字以上の<a href=#space-character title="space
706        character">間隔文字</a>があり、
707    その後に<a href=#syntax-attribute-value title=syntax-attribute-value>属性値</a>があるもので、
708    その属性値については前述の属性値に関する要件に加え、
709    生の<a href=#space-character title="space character">間隔文字</a>、
710    U+0022 QUOTATION MARK (<code>"</code>) 文字、
711    U+0027 APOSTROPHE (<code>'</code>) 文字、
712    U+003D EQUALS SIGN (<code>=</code>) 文字、
713    U+003E
714        GREATER-THAN SIGN (<code>&gt;</code>) 文字を含んでは[[MUST NOT:ならず]]、
715    空文字列であっては[[MUST NOT:なりません]]。
716    
717    #en
718    In the following example, the <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute is given
719         with the unquoted attribute value syntax:
720    #ja
721    次の例では、
722    <code title=attr-input-value><a href=#attr-input-value>value</a></code>
723    属性が非引用属性値構文により与えられています。
724    
725    
726    #en
727    If an attribute using the unquoted attribute syntax is to be
728        followed by another attribute or by one of the optional U+002F
729        SOLIDUS (<code>/</code>) characters allowed in step 6 of the <span title=syntax-start-tag>start tag</span> syntax above, then there
730        must be a <a href=#space-character>space character</a> separating the two.
731    #ja
732    非引用属性値構文を用いた属性に他の属性が続く場合や先述の<span title=syntax-start-tag>開始タグ</span>構文の段階6で認められる
733    U+002F
734        SOLIDUS (<code>/</code>) 文字が続く場合、
735    両者を<a href=#space-character>間隔文字</a>により分離しなければ[[MUST:なりません]]。
736    
737    #en
738    Single-quoted attribute value syntax
739    #ja
740    単一引用符属性値構文
741    
742    #en
743    The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>,
744        followed by zero or more <a href=#space-character title="space character">space
745        characters</a>, followed by a single U+003D EQUALS SIGN
746        character, followed by zero or more <a href=#space-character title="space
747        character">space characters</a>, followed by a single U+0027
748        APOSTROPHE (<code>'</code>) character, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
749        addition to the requirements given above for attribute values,
750        must not contain any literal U+0027 APOSTROPHE (<code>'</code>)
751        characters, and finally followed by a second single U+0027
752        APOSTROPHE (<code>'</code>) character.
753    #ja
754    <a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後、
755    零文字以上の<a href=#space-character title="space character">間隔文字</a>が続き、
756    その後1文字の U+003D EQUALS SIGN
757    文字が続き、零文字以上の<a href=#space-character title="space
758        character">間隔文字</a>が続き、1文字の U+0027
759        APOSTROPHE (<code>'</code>) 文字が続き、<a href=#syntax-attribute-value title=syntax-attribute-value>属性値</a>が続き、
760    この属性値については先述の属性値に関する要件に加えて生の U+0027 APOSTROPHE (<code>'</code>)
761    文字を含んでは[[MUST NOT:ならず]]、その後に2つ目の1文字の
762    U+0027
763        APOSTROPHE (<code>'</code>) 文字が続くもの。
764    
765    #en
766    In the following example, the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is given with the
767         single-quoted attribute value syntax:
768    #ja
769    次の例では、
770    <code title=attr-input-type><a href=#attr-input-type>type</a></code>
771    属性が単一引用符属性値構文により与えられます。
772    
773    #en
774    If an attribute using the single-quoted attribute syntax is to
775        be followed by another attribute, then there must be a <a href=#space-character>space
776        character</a> separating the two.
777    #ja
778    単一引用符属性構文を使った属性に他の属性が続く場合、両者を<a href=#space-character>間隔文字</a>によって分離しなければ[[MUST:なりません]]。
779    
780    #en
781    Double-quoted attribute value syntax
782    #ja
783    二重引用符属性値構文
784    
785    #en
786    The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>,
787        followed by zero or more <a href=#space-character title="space character">space
788        characters</a>, followed by a single U+003D EQUALS SIGN
789        character, followed by zero or more <a href=#space-character title="space
790        character">space characters</a>, followed by a single U+0022
791        QUOTATION MARK (<code>"</code>) character, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in
792        addition to the requirements given above for attribute values,
793        must not contain any literal U+0022 QUOTATION MARK
794        (<code>"</code>) characters, and finally followed by a second
795        single U+0022 QUOTATION MARK (<code>"</code>) character.
796    #ja
797    <a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後に零文字以上の<a href=#space-character title="space character">間隔文字</a>が続き、
798    その後に1文字の U+003D EQUALS SIGN
799        文字が続き、その後に零文字以上の<a href=#space-character title="space
800        character">間隔文字</a>が続き、その後に1文字の U+0022
801        QUOTATION MARK (<code>"</code>) 文字が続き、その後に<a href=#syntax-attribute-value title=syntax-attribute-value>属性値</a>が続くところ、
802    前述の属性値に関する要件に加えて生の U+0022 QUOTATION MARK
803        (<code>"</code>) 文字を含んでは[[MUST:ならず]]、
804    最後に2つ目の1文字の U+0022 QUOTATION MARK (<code>"</code>) 文字が続くもの。
805    
806    #en
807    In the following example, the <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attribute is given with the
808         double-quoted attribute value syntax:
809    #ja
810    次の例では、 <code title=attr-fe-name><a href=#attr-fe-name>name</a></code>
811    属性が二重引用符属性値構文で与えられます。
812    
813    #en
814    If an attribute using the double-quoted attribute syntax is to
815        be followed by another attribute, then there must be a <a href=#space-character>space
816        character</a> separating the two.
817    #ja
818    二重引用符属性構文を使った属性の後に他の属性が続く場合、両者を<a href=#space-character>間隔文字</a>により分離しなければ[[MUST:なりません]]。
819    
820    #en
821    There must never be two or more attributes on the same start tag
822      whose names are an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for
823      each other.
824    #ja
825    同じ開始タグに名前が <a href=#ascii-case-insensitive>ASCII 大文字・小文字不区別</a>で一致する属性が2つ以上あっては[[MUST:なりません]]。
826    
827    #pattern
828    <span class=secno>* </span>Optional tags
829    #ja
830    <span class=secno>$1 </span>任意選択タグ
831    
832    #en
833    Certain tags can be <dfn id=syntax-tag-omission title=syntax-tag-omission>omitted</dfn>.
834    #ja
835    タグの中には<dfn id=syntax-tag-omission title=syntax-tag-omission>省略</dfn>できるものがあります。
836    
837    #en
838    An <code><a href=#the-html-element>html</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the
839      first thing inside the <code><a href=#the-html-element>html</a></code> element is not a <a href=#syntax-comments title=syntax-comments>comment</a>.
840    #ja
841    <code><a href=#the-html-element>html</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、
842    <code><a href=#the-html-element>html</a></code> 要素の内側の最初のものが<a href=#syntax-comments title=syntax-comments>注釈</a>でない場合、
843    省略して[[MAY:構いません]]。
844    
845    #en
846    An <code><a href=#the-html-element>html</a></code> element's <span title=syntax-end-tag>end
847      tag</span> may be omitted if the <code><a href=#the-html-element>html</a></code> element is not
848      immediately followed by a <a href=#syntax-comments title=syntax-comments>comment</a>
849      and the element contains a <code><a href=#the-body-element>body</a></code> element that is either
850      not empty or whose <span title=syntax-start-tag>start tag</span>
851      has not been omitted.
852    #ja
853    <code><a href=#the-html-element>html</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
854    <code><a href=#the-html-element>html</a></code> 要素の直後が<a href=#syntax-comments title=syntax-comments>注釈</a>ではなく、
855    空でないか、または<span title=syntax-start-tag>開始タグ</span>が省略されていない
856    <code><a href=#the-body-element>body</a></code> 要素を同要素が含む場合、
857    省略して[[MAY:構いません]]。
858    
859    #en
860    A <code><a href=#the-head-element>head</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the
861      first thing inside the <code><a href=#the-head-element>head</a></code> element is an element.
862    #ja
863    <code><a href=#the-head-element>head</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、
864    <code><a href=#the-head-element>head</a></code> 要素の内側の最初のものが要素である場合、
865    省略して[[MAY:構いません]]。
866    
867    #en
868    A <code><a href=#the-head-element>head</a></code> element's <span title=syntax-end-tag>end
869      tag</span> may be omitted if the <code><a href=#the-head-element>head</a></code> element is not
870      immediately followed by a <a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>.
871    #ja
872    <code><a href=#the-head-element>head</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
873    <code><a href=#the-head-element>head</a></code> 要素の直後に<a href=#space-character>間隔文字</a>や<a href=#syntax-comments title=syntax-comments>注釈</a>がない場合、
874    省略して[[MAY:構いません]]。
875    
876    #en
877    A <code><a href=#the-body-element>body</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the
878      first thing inside the <code><a href=#the-body-element>body</a></code> element is not a
879      <a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>, except if the first thing
880      inside the <code><a href=#the-body-element>body</a></code> element is a <code><a href=#script>script</a></code> or
881      <code><a href=#the-style-element>style</a></code> element. <!-- Note that even if the </head> end
882      tag is present, the parser makes <style> and <script> elements
883      between </head> and <body> end up in the <head> instead of implying
884      the <body> -->
885    #ja
886    <code><a href=#the-body-element>body</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、
887    <code><a href=#the-body-element>body</a></code> 要素の内側の最初のものが<a href=#space-character>間隔文字</a>や<a href=#syntax-comments title=syntax-comments>注釈</a>でない場合、
888    <code><a href=#the-body-element>body</a></code> 要素の内側の最初のものが
889    <code><a href=#script>script</a></code> 要素や
890      <code><a href=#the-style-element>style</a></code> 要素の場合を除き、
891    省略して[[MAY:構いません]]。
892    <!-- Note that even if the </head> end
893      tag is present, the parser makes <style> and <script> elements
894      between </head> and <body> end up in the <head> instead of implying
895      the <body> -->
896    
897    #en
898    A <code><a href=#the-body-element>body</a></code> element's <span title=syntax-end-tag>end
899      tag</span> may be omitted if the <code><a href=#the-body-element>body</a></code> element is not
900      immediately followed by a <a href=#syntax-comments title=syntax-comments>comment</a> and the element is either not
901      empty or its <span title=syntax-start-tag>start tag</span> has not
902      been omitted.
903    #ja
904    <code><a href=#the-body-element>body</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
905    <code><a href=#the-body-element>body</a></code> 要素の直後が<a href=#syntax-comments title=syntax-comments>注釈</a>ではなく、
906    要素が空ではないか、または<span title=syntax-start-tag>開始タグ</span>が省略されていない場合、
907    省略して[[MAY:構いません]]。
908    
909    #en
910    A <code><a href=#the-li-element>li</a></code> element's <span title=syntax-end-tag>end
911      tag</span> may be omitted if the <code><a href=#the-li-element>li</a></code> element is
912      immediately followed by another <code><a href=#the-li-element>li</a></code> element or if there
913      is no more content in the parent element.
914    #ja
915    <code><a href=#the-li-element>li</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
916    <code><a href=#the-li-element>li</a></code> 要素の直後が別の
917    <code><a href=#the-li-element>li</a></code> 要素か、
918    親要素にそれ以上に内容がない場合、
919    省略して[[MAY:構いません]]。
920    
921    #en
922    A <code><a href=#the-dt-element>dt</a></code> element's <span title=syntax-end-tag>end
923      tag</span> may be omitted if the <code><a href=#the-dt-element>dt</a></code> element is
924      immediately followed by another <code><a href=#the-dt-element>dt</a></code> element or a
925      <code><a href=#the-dd-element>dd</a></code> element.
926    #ja
927    <code><a href=#the-dt-element>dt</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
928     <code><a href=#the-dt-element>dt</a></code> 要素の直後が別の
929    <code><a href=#the-dt-element>dt</a></code> 要素か
930      <code><a href=#the-dd-element>dd</a></code> 要素の場合、省略して[[MAY:構いません]]。
931    
932    #en
933    A <code><a href=#the-dd-element>dd</a></code> element's <span title=syntax-end-tag>end
934      tag</span> may be omitted if the <code><a href=#the-dd-element>dd</a></code> element is
935      immediately followed by another <code><a href=#the-dd-element>dd</a></code> element or a
936      <code><a href=#the-dt-element>dt</a></code> element, or if there is no more content in the
937      parent element.
938    #ja
939    <code><a href=#the-dd-element>dd</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
940    <code><a href=#the-dd-element>dd</a></code> 要素の直後が別の
941    <code><a href=#the-dd-element>dd</a></code> 要素か
942      <code><a href=#the-dt-element>dt</a></code> 要素の場合や、
943    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
944    
945    #en
946    A <code><a href=#the-p-element>p</a></code> element's <span title=syntax-end-tag>end
947      tag</span> may be omitted if the <code><a href=#the-p-element>p</a></code> element is
948      immediately followed by an <code><a href=#the-address-element>address</a></code>,
949      <code><a href=#the-article-element>article</a></code>, <code><a href=#the-aside-element>aside</a></code>, <code><a href=#the-blockquote-element>blockquote</a></code>,
950      <code><a href=#datagrid>datagrid</a></code>, <code><a href=#the-dialog-element>dialog</a></code>, <code>dir</code>,
951      <code><a href=#the-div-element>div</a></code>, <code><a href=#the-dl-element>dl</a></code>, <code><a href=#the-fieldset-element>fieldset</a></code>,
952      <code><a href=#the-footer-element>footer</a></code>, <code><a href=#the-form-element>form</a></code>, <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h1</a></code>,
953      <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h2</a></code>, <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h3</a></code>, <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h4</a></code>, <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h5</a></code>,
954      <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h6</a></code>, <code><a href=#the-header-element>header</a></code>, <code><a href=#the-hr-element>hr</a></code>,
955      <code><a href=#menus>menu</a></code>, <code><a href=#the-nav-element>nav</a></code>, <code><a href=#the-ol-element>ol</a></code>,
956      <code><a href=#the-p-element>p</a></code>, <code><a href=#the-pre-element>pre</a></code>, <code><a href=#the-section-element>section</a></code>,
957      <code><a href=#the-table-element>table</a></code>, or <code><a href=#the-ul-element>ul</a></code>, element, or if there is no
958      more content in the parent element and the parent element is not an
959      <code><a href=#the-a-element>a</a></code> element.
960    #ja
961    <code><a href=#the-p-element>p</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
962    <code><a href=#the-p-element>p</a></code> 要素の直後が
963    <code><a href=#the-address-element>address</a></code>、
964      <code><a href=#the-article-element>article</a></code>、<code><a href=#the-aside-element>aside</a></code>、<code><a href=#the-blockquote-element>blockquote</a></code>、
965      <code><a href=#datagrid>datagrid</a></code>、<code><a href=#the-dialog-element>dialog</a></code>、<code>dir</code>、
966      <code><a href=#the-div-element>div</a></code>、<code><a href=#the-dl-element>dl</a></code>、<code><a href=#the-fieldset-element>fieldset</a></code>、
967      <code><a href=#the-footer-element>footer</a></code>、<code><a href=#the-form-element>form</a></code>、<code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h1</a></code>、
968      <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h2</a></code>、<code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h3</a></code>、<code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h4</a></code>、<code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h5</a></code>、
969      <code><a href=#the-h1,-h2,-h3,-h4,-h5,-and-h6-elements>h6</a></code>、<code><a href=#the-header-element>header</a></code>、<code><a href=#the-hr-element>hr</a></code>、
970      <code><a href=#menus>menu</a></code>、<code><a href=#the-nav-element>nav</a></code>、<code><a href=#the-ol-element>ol</a></code>、
971      <code><a href=#the-p-element>p</a></code>、<code><a href=#the-pre-element>pre</a></code>、<code><a href=#the-section-element>section</a></code>、
972      <code><a href=#the-table-element>table</a></code>、 <code><a href=#the-ul-element>ul</a></code> のいずれかの要素の場合や親要素にそれ以上に内容がなく、親要素が
973      <code><a href=#the-a-element>a</a></code> 要素ではない場合、
974    省略して[[MAY:構いません]]。
975    
976    #en
977    An <code><a href=#the-rt-element>rt</a></code> element's <span title=syntax-end-tag>end
978      tag</span> may be omitted if the <code><a href=#the-rt-element>rt</a></code> element is
979      immediately followed by an <code><a href=#the-rt-element>rt</a></code> or <code><a href=#the-rp-element>rp</a></code>
980      element, or if there is no more content in the parent element.
981    #ja
982    <code><a href=#the-rt-element>rt</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
983    <code><a href=#the-rt-element>rt</a></code> 要素の直後が
984    <code><a href=#the-rt-element>rt</a></code> 要素や
985    <code><a href=#the-rp-element>rp</a></code> 要素でない場合や、
986    親要素にそれ以上内容がない場合、
987    省略して[[MAY:構いません]]。
988    
989    #en
990    An <code><a href=#the-rp-element>rp</a></code> element's <span title=syntax-end-tag>end
991      tag</span> may be omitted if the <code><a href=#the-rp-element>rp</a></code> element is
992      immediately followed by an <code><a href=#the-rt-element>rt</a></code> or <code><a href=#the-rp-element>rp</a></code>
993      element, or if there is no more content in the parent element.
994    #ja
995    <code><a href=#the-rp-element>rp</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
996    <code><a href=#the-rp-element>rp</a></code> 要素の直後が
997    <code><a href=#the-rt-element>rt</a></code> 要素や
998    <code><a href=#the-rp-element>rp</a></code> 要素の場合や、
999    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
1000    
1001    #en
1002    An <code><a href=#the-optgroup-element>optgroup</a></code> element's <span title=syntax-end-tag>end tag</span> may be omitted if the
1003      <code><a href=#the-optgroup-element>optgroup</a></code> element <!--has an ancestor
1004      <code>select</code> element and--> is immediately followed by
1005      another <code><a href=#the-optgroup-element>optgroup</a></code> element, or if <!--all of the elements
1006      that are ancestors of the <code>optgroup</code> element, up to and
1007      including the first ancestor element that is not an
1008      <code>optgroup</code> element, have no more content--> there is no
1009      more content in the parent element.
1010    #ja
1011    <code><a href=#the-optgroup-element>optgroup</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1012      <code><a href=#the-optgroup-element>optgroup</a></code> 要素<!--has an ancestor
1013      <code>select</code> element and-->の直後が
1014    別の <code><a href=#the-optgroup-element>optgroup</a></code> 要素の場合や、
1015    <!--all of the elements
1016      that are ancestors of the <code>optgroup</code> element, up to and
1017      including the first ancestor element that is not an
1018      <code>optgroup</code> element, have no more content-->親要素にそれ以上内容がない場合、
1019    省略して[[MAY:構いません]]。
1020    
1021    #en
1022    An <code><a href=#the-option-element>option</a></code> element's <span title=syntax-end-tag>end
1023      tag</span> may be omitted if the <code><a href=#the-option-element>option</a></code> element is
1024      immediately followed by another <code><a href=#the-option-element>option</a></code> element, or if
1025      it is immediately followed by an <code><a href=#the-optgroup-element>optgroup</a></code> element, or
1026      if there is no more content in the parent element.
1027    #ja
1028    <code><a href=#the-option-element>option</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1029    <code><a href=#the-option-element>option</a></code> 要素の直後が別の
1030    <code><a href=#the-option-element>option</a></code> 要素の場合や、
1031    直後が <code><a href=#the-optgroup-element>optgroup</a></code> 要素の場合や、
1032    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
1033    
1034    #en
1035    A <code><a href=#the-colgroup-element>colgroup</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the
1036      first thing inside the <code><a href=#the-colgroup-element>colgroup</a></code> element is a
1037      <code><a href=#the-col-element>col</a></code> element, and if the element is not immediately
1038      preceded by another <code><a href=#the-colgroup-element>colgroup</a></code> element whose <span title=syntax-end-tag>end tag</span> has been omitted.
1039    #ja
1040    <code><a href=#the-colgroup-element>colgroup</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、
1041    <code><a href=#the-colgroup-element>colgroup</a></code> 要素の内側の最初のものが
1042      <code><a href=#the-col-element>col</a></code> 要素の場合で、
1043    直前が<span title=syntax-end-tag>終了タグ</span>の省略された別の
1044    <code><a href=#the-colgroup-element>colgroup</a></code> 要素でない場合、
1045    省略して[[MAY:構いません]]。
1046    
1047    #en
1048    A <code><a href=#the-colgroup-element>colgroup</a></code> element's <span title=syntax-end-tag>end tag</span> may be omitted if the
1049      <code><a href=#the-colgroup-element>colgroup</a></code> element is not immediately followed by a
1050      <a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>.
1051    #ja
1052    <code><a href=#the-colgroup-element>colgroup</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1053      <code><a href=#the-colgroup-element>colgroup</a></code> 要素の直後が<a href=#space-character>間隔文字</a>や<a href=#syntax-comments title=syntax-comments>注釈</a>でない場合、
1054    省略して[[MAY:構いません]]。
1055    
1056    #en
1057    A <code><a href=#the-thead-element>thead</a></code> element's <span title=syntax-end-tag>end
1058      tag</span> may be omitted if the <code><a href=#the-thead-element>thead</a></code> element is
1059      immediately followed by a <code><a href=#the-tbody-element>tbody</a></code> or <code><a href=#the-tfoot-element>tfoot</a></code>
1060      element.
1061    #ja
1062    <code><a href=#the-thead-element>thead</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1063    <code><a href=#the-thead-element>thead</a></code> 要素の直後が
1064    <code><a href=#the-tbody-element>tbody</a></code> 要素や <code><a href=#the-tfoot-element>tfoot</a></code>
1065    要素の場合、省略して[[MAY:構いません]]。
1066    
1067    #en
1068    A <code><a href=#the-tbody-element>tbody</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the
1069      first thing inside the <code><a href=#the-tbody-element>tbody</a></code> element is a
1070      <code><a href=#the-tr-element>tr</a></code> element, and if the element is not immediately
1071      preceded by a <code><a href=#the-tbody-element>tbody</a></code>, <code><a href=#the-thead-element>thead</a></code>, or
1072      <code><a href=#the-tfoot-element>tfoot</a></code> element whose <span title=syntax-end-tag>end
1073      tag</span> has been omitted.
1074    #ja
1075    <code><a href=#the-tbody-element>tbody</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、
1076    <code><a href=#the-tbody-element>tbody</a></code> 要素の内側の最初のものが
1077      <code><a href=#the-tr-element>tr</a></code> 要素の場合で、
1078    要素の直前が<span title=syntax-end-tag>終了タグ</span>の省略された
1079    <code><a href=#the-tbody-element>tbody</a></code> 要素、<code><a href=#the-thead-element>thead</a></code> 要素、
1080      <code><a href=#the-tfoot-element>tfoot</a></code> 要素でない場合、
1081    省略して[[MAY:構いません]]。
1082    
1083    #en
1084    A <code><a href=#the-tbody-element>tbody</a></code> element's <span title=syntax-end-tag>end
1085      tag</span> may be omitted if the <code><a href=#the-tbody-element>tbody</a></code> element is
1086      immediately followed by a <code><a href=#the-tbody-element>tbody</a></code> or <code><a href=#the-tfoot-element>tfoot</a></code>
1087      element, or if there is no more content in the parent element.
1088    #ja
1089    <code><a href=#the-tbody-element>tbody</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1090    <code><a href=#the-tbody-element>tbody</a></code> 要素の直後が
1091    <code><a href=#the-tbody-element>tbody</a></code> 要素や <code><a href=#the-tfoot-element>tfoot</a></code>
1092    要素の場合や、親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
1093    
1094    
1095    #en
1096    A <code><a href=#the-tfoot-element>tfoot</a></code> element's <span title=syntax-end-tag>end
1097      tag</span> may be omitted if the <code><a href=#the-tfoot-element>tfoot</a></code> element is
1098      immediately followed by a <code><a href=#the-tbody-element>tbody</a></code> element, or if there is
1099      no more content in the parent element.
1100    #ja
1101    <code><a href=#the-tfoot-element>tfoot</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1102    <code><a href=#the-tfoot-element>tfoot</a></code> 要素の直後が
1103    <code><a href=#the-tbody-element>tbody</a></code> 要素の場合や、
1104    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
1105    
1106    #en
1107    A <code><a href=#the-tr-element>tr</a></code> element's <span title=syntax-end-tag>end
1108      tag</span> may be omitted if the <code><a href=#the-tr-element>tr</a></code> element is
1109      immediately followed by another <code><a href=#the-tr-element>tr</a></code> element, or if there
1110      is no more content in the parent element.
1111    #ja
1112    <code><a href=#the-tr-element>tr</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1113    <code><a href=#the-tr-element>tr</a></code> 要素の直後が別の
1114    <code><a href=#the-tr-element>tr</a></code> 要素の場合や、
1115    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
1116    
1117    #en
1118    A <code><a href=#the-td-element>td</a></code> element's <span title=syntax-end-tag>end
1119      tag</span> may be omitted if the <code><a href=#the-td-element>td</a></code> element is
1120      immediately followed by a <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code>
1121      element, or if there is no more content in the parent element.
1122    #ja
1123    <code><a href=#the-td-element>td</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、
1124    <code><a href=#the-td-element>td</a></code> 要素の直後が
1125    <code><a href=#the-td-element>td</a></code> 要素や
1126    <code><a href=#the-th-element>th</a></code> 要素の場合や、
1127    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
1128    
1129    
1130    #en
1131    A <code><a href=#the-th-element>th</a></code> element's <span title=syntax-end-tag>end
1132      tag</span> may be omitted if the <code><a href=#the-th-element>th</a></code> element is
1133      immediately followed by a <code><a href=#the-td-element>td</a></code> or <code><a href=#the-th-element>th</a></code>
1134      element, or if there is no more content in the parent element.
1135    #ja
1136    <code><a href=#the-th-element>th</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、<code><a href=#the-th-element>th</a></code> 要素の直後が
1137    <code><a href=#the-td-element>td</a></code> 要素や
1138    <code><a href=#the-th-element>th</a></code> 要素の場合や、
1139    親要素にそれ以上内容がない場合、省略して[[MAY:構いません]]。
1140    
1141    
1142    #en
1143    <strong>However</strong>, a <span title=syntax-start-tag>start
1144      tag</span> must never be omitted if it has any attributes.
1145    #ja
1146    <strong>しかし</strong>、<span title=syntax-start-tag>開始タグ</span>が属性を持つ場合、
1147    開始タグを省略しては[[MUST:なりません]]。
1148    
1149    #pattern
1150    <span class=secno>* </span>Restrictions on content models
1151    #ja
1152    <span class=secno>$1 </span>内容モデルの制限
1153    
1154    #en
1155    For historical reasons, certain elements have extra restrictions
1156      beyond even the restrictions given by their content model.
1157    #ja
1158    歴史的理由により、内容モデルによる制限以上の追加の制限を持つ要素がいくつかあります。
1159    
1160    #en
1161    An <code><a href=#the-optgroup-element>optgroup</a></code> element <!--that is a descendant of a
1162      <code>select</code> element--> must not contain
1163      <code><a href=#the-optgroup-element>optgroup</a></code> elements, even though these elements are
1164      technically allowed to be nested according to the content models
1165      described in this specification. (If an <code><a href=#the-optgroup-element>optgroup</a></code>
1166      element is put inside another <!--<code>optgroup</code> element
1167      inside a <code>select</code> element--> in the markup, it will in
1168      fact imply an <code><a href=#the-optgroup-element>optgroup</a></code> end tag before it.)
1169    #ja
1170    <code><a href=#the-optgroup-element>optgroup</a></code> 要素は<!--that is a descendant of a
1171      <code>select</code> element-->、
1172    この仕様書で述べた内容モデルに従えば技術的には入れ子にできますが、
1173      <code><a href=#the-optgroup-element>optgroup</a></code>
1174    要素を含んでは[[MUST NOT:なりません]]。
1175    (<code><a href=#the-optgroup-element>optgroup</a></code>
1176    要素をマーク付け中で別の<!--<code>optgroup</code> element
1177      inside a <code>select</code> element-->
1178    <code><a href=#the-optgroup-element>optgroup</a></code> 要素中に配置しても、
1179    実際にはその前に <code><a href=#the-optgroup-element>optgroup</a></code>
1180    終了タグが暗示的に存在するものとみなされます。)
1181    
1182    #en
1183    A <code><a href=#the-table-element>table</a></code> element must not contain <code><a href=#the-tr-element>tr</a></code>
1184      elements, even though these elements are technically allowed inside
1185      <code><a href=#the-table-element>table</a></code> elements according to the content models
1186      described in this specification. (If a <code><a href=#the-tr-element>tr</a></code> element is
1187      put inside a <code><a href=#the-table-element>table</a></code> in the markup, it will in fact imply
1188      a <code><a href=#the-tbody-element>tbody</a></code> start tag before it.)
1189    #ja
1190    <code><a href=#the-table-element>table</a></code>
1191    要素はこの仕様書で述べた内容モデルに従えば技術的には内側で
1192    <code><a href=#the-tr-element>tr</a></code> 要素が認められていますが、
1193    <code><a href=#the-table-element>table</a></code>
1194    要素は <code><a href=#the-tr-element>tr</a></code> 要素を含んでは[[MUST NOT:なりません]]。
1195    (<code><a href=#the-tr-element>tr</a></code> 要素がマーク付け中で
1196    <code><a href=#the-table-element>table</a></code> 要素の内側に置かれた場合、
1197    実際には前に <code><a href=#the-tbody-element>tbody</a></code> 開始タグが暗示的に存在するものとみなされます。)
1198    
1199    #en
1200    A single U+000A LINE FEED (LF) character may be placed
1201      immediately after the <span title=syntax-start-tag>start
1202      tag</span> of <code><a href=#the-pre-element>pre</a></code> and <code><a href=#the-textarea-element>textarea</a></code>
1203      elements. This does not affect the processing of the element. The
1204      otherwise optional U+000A LINE FEED (LF) character <em>must</em> be
1205      included if the element's contents start with that character
1206      (because otherwise the leading newline in the contents would be
1207      treated like the optional newline, and ignored).
1208    #ja
1209    <code><a href=#the-pre-element>pre</a></code> 要素と
1210    <code><a href=#the-textarea-element>textarea</a></code>
1211    要素の<span title=syntax-start-tag>開始タグ</span>の直後に1文字の
1212     U+000A LINE FEED (LF) 文字を置いても[[MAY:構いません]]。
1213    この文字は要素の処理に影響しません。
1214    通常は任意選択のこの U+000A LINE FEED (LF) 文字は、
1215    要素の内容がこの文字から始まる場合には、含めなければ<em>[[MUST:なりません]]</em>
1216    (そうしなければ、内容の最初の改行は任意選択の改行として扱われ、無視されるからです)。
1217    
1218    
1219    #en
1220    The following two <code><a href=#the-pre-element>pre</a></code> blocks are equivalent:
1221    #ja
1222    次の2つの <code><a href=#the-pre-element>pre</a></code>
1223    ブロックは等価です。
1224    
1225    #en
1226    &lt;pre&gt;Hello&lt;/pre&gt;
1227    #ja
1228    &lt;pre&gt;こんにちは&lt;/pre&gt;
1229    
1230    #en
1231    &lt;pre&gt;<br>Hello&lt;/pre&gt;
1232    #ja
1233    &lt;pre&gt;<br>こんにちは&lt;/pre&gt;
1234    
1235    #en
1236    <span class=secno>* </span>Restrictions on the contents of CDATA and RCDATA elements
1237    #ja
1238    <span class=secno>$1 </span>CDATA 要素や RCDATA 要素の内容の制限
1239    
1240    #en
1241    The text in CDATA and RCDATA elements must not contain any
1242      occurrences of the string "<code title="">&lt;/</code>" (U+003C
1243      LESS-THAN SIGN, U+002F SOLIDUS) followed by characters that
1244      case-insensitively match the tag name of the element followed by one
1245      of U+0009 CHARACTER TABULATION, U+000A LINE FEED (LF), U+000C FORM
1246      FEED (FF), U+0020 SPACE, U+003E GREATER-THAN SIGN (&gt;), or U+002F
1247      SOLIDUS (/), unless that string is part of an <a href=#syntax-escape title=syntax-escape>escaping text span</a>.
1248    #ja
1249    CDATA 要素や RCDATA 要素のテキストは文字列「<code title="">&lt;/</code>」 (U+003C
1250      LESS-THAN SIGN、U+002F SOLIDUS) の後に要素のタグ名と大文字・小文字を区別しない場合に一致する文字が続き、
1251    その後に U+0009 CHARACTER TABULATION、U+000A LINE FEED (LF)、U+000C FORM
1252      FEED (FF)、U+0020 SPACE、U+003E GREATER-THAN SIGN (&gt;)、U+002F
1253      SOLIDUS (/)
1254    のいずれかが続くような列を、その文字列が<a href=#syntax-escape title=syntax-escape>逃避テキスト径間</a>の一部である場合を除き、
1255    含んでは[[MUST NOT:なりません]]。
1256    
1257    #en
1258    An <dfn id=syntax-escape title=syntax-escape>escaping text span</dfn> is a span
1259      of <a href=#syntax-text title=syntax-text>text</a> that starts with an <a href=#syntax-escape-start title=syntax-escape-start>escaping text span start</a> that is
1260      not itself in an <a href=#syntax-escape title=syntax-escape>escaping text
1261      span</a>, and ends at the next <a href=#syntax-escape-end title=syntax-escape-end>escaping text span end</a>. There
1262      cannot be any <a href=#syntax-charref title=syntax-charref>character
1263      references</a> inside an <a href=#syntax-escape title=syntax-escape>escaping
1264      text span</a>.
1265    #ja
1266    <dfn id=syntax-escape title=syntax-escape>逃避テキスト径間</dfn>は、
1267    <a href=#syntax-text title=syntax-text>テキスト</a>の径間であって、
1268    それ自体は<a href=#syntax-escape title=syntax-escape>逃避テキスト径間</a>中にない<a href=#syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</a>によって始まり、
1269    次の<a href=#syntax-escape-end title=syntax-escape-end>逃避テキスト径間</a>によって終わるものです。
1270    <a href=#syntax-escape title=syntax-escape>逃避テキスト径間</a>の内側には<a href=#syntax-charref title=syntax-charref>文字参照</a>を入れることができません。
1271    
1272    #en
1273    An <dfn id=syntax-escape-start title=syntax-escape-start>escaping text span
1274      start</dfn> is a part of <a href=#syntax-text title=syntax-text>text</a> that
1275      consists of the four character sequence "<code title="">&lt;!--</code>" (U+003C LESS-THAN SIGN, U+0021 EXCLAMATION
1276      MARK, U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS).
1277    #ja
1278    <dfn id=syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</dfn>は、
1279    <a href=#syntax-text title=syntax-text>テキスト</a>の一部で、
1280    4文字の列「<code title="">&lt;!--</code>」(U+003C LESS-THAN SIGN、U+0021 EXCLAMATION
1281      MARK、U+002D HYPHEN-MINUS、U+002D HYPHEN-MINUS) です。
1282    
1283    #en
1284    An <a href=#syntax-escape-start title=syntax-escape-start>escaping text span
1285      start</a> may share its U+002D HYPHEN-MINUS characters with its
1286      corresponding <a href=#syntax-escape-end title=syntax-escape-end>escaping text span
1287      end</a>.
1288    #ja
1289    <a href=#syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</a>は、
1290    その U+002D HYPHEN-MINUS 文字を対応する<a href=#syntax-escape-end title=syntax-escape-end>逃避テキスト径間終了</a>と共有して[[MAY:構いません]]。
1291    
1292    #en
1293    The text in CDATA and RCDATA elements must not have an <a href=#syntax-escape-start title=syntax-escape-start>escaping text span start</a> that is
1294      not followed by an <a href=#syntax-escape-end title=syntax-escape-end>escaping text
1295      span end</a>.
1296    #ja
1297    CDATA 要素と RCDATA 要素のテキストは<a href=#syntax-escape-end title=syntax-escape-end>逃避テキスト径間終了</a>が後に続かない<a href=#syntax-escape-start title=syntax-escape-start>逃避テキスト径間開始</a>を含んでは[[MUST NOT:なりません]]。
1298    
1299    #pattern
1300    <span class=secno>* </span>Text
1301    #ja
1302    <span class=secno>$1 </span>テキスト
1303    
1304    #en
1305    <dfn id=syntax-text title=syntax-text>Text</dfn> is allowed inside elements,
1306      attributes, and comments. Text must consist of Unicode characters.
1307      Text must not contain U+0000 characters. Text must not contain
1308      permanently undefined Unicode characters. Text must not contain
1309      control characters other than <a href=#space-character title="space character">space
1310      characters</a>. Extra constraints are placed on what is and what
1311      is not allowed in text based on where the text is to be put, as
1312      described in the other sections.
1313    #ja
1314    <dfn id=syntax-text title=syntax-text>テキスト</dfn>は要素、
1315    属性、注釈の内側で認められています。
1316    テキストは Unicode 文字で構成されなければ[[MUST:なりません]]。
1317    テキストは U+0000 文字を含んでは[[MUST NOT:なりません]]。
1318    テキストは恒久的に未定義の Unicode 文字を含んでは[[MUST NOT:なりません]]。
1319    テキストは<a href=#space-character title="space character">間隔文字</a>以外の制御文字を含んでは[[MUST NOT:なりません]]。
1320    他の節で述べた通り、テキストが配置される場所によって、テキスト中で何が認められ、
1321    何が認められないかの追加の制約があります。
1322    
1323    
1324    #pattern
1325    <span class=secno>* </span>Newlines
1326    #ja
1327    <span class=secno>$1 </span>改行
1328    
1329    #en
1330    <dfn id=syntax-newlines title=syntax-newlines>Newlines</dfn> in HTML may be
1331      represented either as U+000D CARRIAGE RETURN (CR) characters, U+000A
1332      LINE FEED (LF) characters, or pairs of U+000D CARRIAGE RETURN (CR),
1333      U+000A LINE FEED (LF) characters in that order.
1334    #ja
1335    HTML の<dfn id=syntax-newlines title=syntax-newlines>改行</dfn>は
1336    U+000D CARRIAGE RETURN (CR) 文字か、U+000A
1337      LINE FEED (LF) 文字か、U+000D CARRIAGE RETURN (CR) 文字と
1338    U+000A LINE FEED (LF) 文字の組をこの順序で用いるかのいずれかによって表現して[[MAY:構いません]]。
1339    
1340    
1341    #pattern
1342    <span class=secno>* </span>Character references
1343    #ja
1344    <span class=secno>$1 </span>文字参照
1345    
1346    #en
1347    In certain cases described in other sections, <a href=#syntax-text title=syntax-text>text</a> may be mixed with <dfn id=syntax-charref title=syntax-charref>character references</dfn>. These can be used
1348      to escape characters that couldn't otherwise legally be included in
1349      <a href=#syntax-text title=syntax-text>text</a>.
1350    #ja
1351    他の節で述べたいくつかの場合において、<a href=#syntax-text title=syntax-text>テキスト</a>には
1352    <dfn id=syntax-charref title=syntax-charref>文字参照</dfn>を混在させて[[MAY:構いません]]。
1353    文字参照は、通常合法的に<a href=#syntax-text title=syntax-text>テキスト</a>に含めることができない文字を逃避するために使うことができます。
1354    
1355    #en
1356    Character references must start with a U+0026 AMPERSAND
1357      (<code>&amp;</code>). Following this, there are three possible kinds
1358      of character references:
1359    #ja
1360    文字参照は、U+0026 AMPERSAND
1361      (<code>&amp;</code>) により始まらなければ[[MUST:なりません]]。
1362    この文字に続けて、3種類の文字参照があります。
1363    
1364    #en
1365    Named character references
1366    #ja
1367    名前付き文字参照
1368    
1369    #en
1370    The ampersand must be followed by one of the names given in the
1371       <a href=#named-character-references>named character references</a> section, using the same
1372       case. The name must be one that is terminated by a U+003B SEMICOLON
1373       (<code title="">;</code>) character.
1374    #ja
1375    アンド記号の後には、
1376    <a href=#named-character-references>名前付き文字参照</a>の節にある名前のいずれかを、
1377    同じ大文字・小文字の組み合わせによって続けなければ[[MUST:なりません]]。
1378    名前は U+003B SEMICOLON
1379       (<code title="">;</code>) 文字で終わるものでなければ[[MUST:なりません]]。
1380    
1381    #en
1382    Decimal numeric character reference
1383    #ja
1384    十進数値文字参照
1385    
1386    #en
1387    The ampersand must be followed by a U+0023 NUMBER SIGN
1388       (<code>#</code>) character, followed by one or more digits in the
1389       range U+0030 DIGIT ZERO .. U+0039 DIGIT NINE, representing a
1390       base-ten integer that itself is a Unicode code point that is
1391       not U+0000, U+000D, in the range U+0080 .. U+009F, or in the range
1392       0xD800 .. 0xDFFF (surrogates). The digits must then be followed by
1393       a U+003B SEMICOLON character (<code title="">;</code>).
1394    #ja
1395    アンド記号の後には、 U+0023 NUMBER SIGN
1396       (<code>#</code>) 文字が続き、 Unicode 符号位置であって
1397    U+0000、U+000D、範囲 U+0080 ~ U+009F、範囲 0xD800~0xDFFF (代理)
1398    でない十進整数を表す1文字以上の範囲 U+0030 DIGIT ZERO ~ U+0039 DIGIT NINE
1399    の数字が続かなければ[[MUST:なりません]]。
1400    数字の後には U+003B SEMICOLON 文字 (<code title="">;</code>)
1401    が続かなければ[[MUST:なりません]]。
1402    
1403    #en
1404    Hexadecimal numeric character reference
1405    #ja
1406    十六進数値文字参照
1407    
1408    #en
1409    The ampersand must be followed by a U+0023 NUMBER SIGN
1410       (<code>#</code>) character, which must be followed by either a
1411       U+0078 LATIN SMALL LETTER X or a U+0058 LATIN CAPITAL LETTER X
1412       character, which must then be followed by one or more digits in the
1413       range U+0030 DIGIT ZERO .. U+0039 DIGIT NINE, U+0061 LATIN SMALL
1414       LETTER A .. U+0066 LATIN SMALL LETTER F, and U+0041 LATIN CAPITAL
1415       LETTER A .. U+0046 LATIN CAPITAL LETTER F, representing a
1416       base-sixteen integer that itself is a Unicode code point that is
1417       not U+0000, U+000D, in the range U+0080 .. U+009F, or in the range
1418       0xD800 .. 0xDFFF (surrogates). The digits must then be followed by
1419       a U+003B SEMICOLON character (<code title="">;</code>).
1420    #ja
1421    アンド記号の後には、 U+0023 NUMBER SIGN
1422       (<code>#</code>) 文字が続き、その後に U+0078 LATIN SMALL LETTER X 文字か
1423    U+0058 LATIN CAPITAL LETTER X 文字が続き、その後に
1424    Unicode 符号位置であって
1425    U+0000、U+000D、範囲 U+0080 ~ U+009F、
1426    範囲 0xD800 .. 0xDFFF (代理)
1427    でない十六進整数を表す1文字以上の範囲
1428    U+0030 DIGIT ZERO ~ U+0039 DIGIT NINE、U+0061 LATIN SMALL
1429       LETTER A ~ U+0066 LATIN SMALL LETTER F、 U+0041 LATIN CAPITAL
1430       LETTER A ~ U+0046 LATIN CAPITAL LETTER F
1431    の数字が続かなければ[[MUST:なりません]]。
1432    数字の後には U+003B SEMICOLON 文字 (<code title="">;</code>)
1433    が続かなければ[[MUST:なりません]]。
1434    
1435    #en
1436    An <dfn id=syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous
1437      ampersand</dfn> is a U+0026 AMPERSAND (<code>&amp;</code>) character
1438      that is followed by some <a href=#syntax-text title=syntax-text>text</a> other
1439      than a <a href=#space-character>space character</a>, a U+003C LESS-THAN SIGN
1440      character ('&lt;'), or another U+0026 AMPERSAND (<code>&amp;</code>)
1441      character.
1442    #ja
1443    <dfn id=syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</dfn>は、
1444    <a href=#space-character>間隔文字</a>、U+003C LESS-THAN SIGN
1445      文字 ('&lt;')、別の U+0026 AMPERSAND (<code>&amp;</code>) 文字以外の
1446    <a href=#syntax-text title=syntax-text>テキスト</a>が続く
1447    U+0026 AMPERSAND (<code>&amp;</code>) 文字です。
1448    
1449    
1450    #pattern
1451    <span class=secno>* </span>CDATA sections
1452    #ja
1453    <span class=secno>$1 </span>CDATA 区間
1454    
1455    #en
1456    <dfn id=syntax-cdata title=syntax-cdata>CDATA sections</dfn> must start with
1457      the character sequence U+003C LESS-THAN SIGN, U+0021 EXCLAMATION
1458      MARK, U+005B LEFT SQUARE BRACKET, U+0043 LATIN CAPITAL LETTER C,
1459      U+0044 LATIN CAPITAL LETTER D, U+0041 LATIN CAPITAL LETTER A, U+0054
1460      LATIN CAPITAL LETTER T, U+0041 LATIN CAPITAL LETTER A, U+005B LEFT
1461      SQUARE BRACKET (<code title="">&lt;![CDATA[</code>). Following this
1462      sequence, the CDATA section may have <a href=#syntax-text title=syntax-text>text</a>, with the additional restriction
1463      that the text must not contain the three character sequence U+005D
1464      RIGHT SQUARE BRACKET, U+005D RIGHT SQUARE BRACKET, U+003E
1465      GREATER-THAN SIGN (<code title="">]]&gt;</code>). Finally, the CDATA
1466      section must be ended by the three character sequence U+005D RIGHT
1467      SQUARE BRACKET, U+005D RIGHT SQUARE BRACKET, U+003E GREATER-THAN
1468      SIGN (<code title="">]]&gt;</code>).
1469    #ja
1470    <dfn id=syntax-cdata title=syntax-cdata>CDATA 区間</dfn>は、
1471    文字列 U+003C LESS-THAN SIGN、U+0021 EXCLAMATION
1472      MARK、U+005B LEFT SQUARE BRACKET、U+0043 LATIN CAPITAL LETTER C、
1473      U+0044 LATIN CAPITAL LETTER D、U+0041 LATIN CAPITAL LETTER A、U+0054
1474      LATIN CAPITAL LETTER T、U+0041 LATIN CAPITAL LETTER A、U+005B LEFT
1475      SQUARE BRACKET (<code title="">&lt;![CDATA[</code>) で始まらなければ[[MUST:なりません]]。
1476    CDATA 区間は、この文字列に続けて、
1477    <a href=#syntax-text title=syntax-text>テキスト</a>を持って[[MAY:構いません]]。
1478    ただし、追加の制限として、このテキストは3文字の列 U+005D
1479      RIGHT SQUARE BRACKET、U+005D RIGHT SQUARE BRACKET、U+003E
1480      GREATER-THAN SIGN (<code title="">]]&gt;</code>) を含んでは[[MUST NOT:なりません]]。
1481    最後に、CDATA 区間は、3文字の列 U+005D RIGHT
1482      SQUARE BRACKET、U+005D RIGHT SQUARE BRACKET、U+003E GREATER-THAN
1483      SIGN (<code title="">]]&gt;</code>) で終わらなければ[[MUST:なりません]]。
1484    
1485    #pattern
1486    <span class=secno>* </span>Comments
1487    #ja
1488    <span class=secno>$1 </span>注釈
1489    
1490    #en
1491    <dfn id=syntax-comments title=syntax-comments>Comments</dfn> must start with the
1492      four character sequence U+003C LESS-THAN SIGN, U+0021 EXCLAMATION
1493      MARK, U+002D HYPHEN-MINUS, U+002D HYPHEN-MINUS (<code title="">&lt;!--</code>). Following this sequence, the comment may
1494      have <a href=#syntax-text title=syntax-text>text</a>, with the additional
1495      restriction that the text must not start with a single U+003E
1496      GREATER-THAN SIGN ('&gt;') character, nor start with a U+002D
1497      HYPHEN-MINUS (<code title="">-</code>) character followed by a
1498      U+003E GREATER-THAN SIGN ('&gt;') character, nor contain two
1499      consecutive U+002D HYPHEN-MINUS (<code title="">-</code>)
1500      characters, nor end with a U+002D HYPHEN-MINUS (<code title="">-</code>) character. Finally, the comment must be ended by
1501      the three character sequence U+002D HYPHEN-MINUS, U+002D
1502      HYPHEN-MINUS, U+003E GREATER-THAN SIGN (<code title="">--&gt;</code>).
1503    #ja
1504    <dfn id=syntax-comments title=syntax-comments>注釈</dfn>は、
1505    4文字の列 U+003C LESS-THAN SIGN、U+0021 EXCLAMATION
1506      MARK、U+002D HYPHEN-MINUS、U+002D HYPHEN-MINUS (<code title="">&lt;!--</code>)
1507    で始まらなければ[[MUST:なりません]]。
1508    注釈は、この文字列に続けて、
1509    <a href=#syntax-text title=syntax-text>テキスト</a>を持って[[MAY:構いません]]。
1510    ただし、追加の制限として、このテキストは U+003E
1511      GREATER-THAN SIGN ('&gt;') 文字1文字から始まったり、 U+002D
1512      HYPHEN-MINUS (<code title="">-</code>) 文字の後に
1513      U+003E GREATER-THAN SIGN ('&gt;') 文字が続く列から始まったり、
1514    2つの連続する U+002D HYPHEN-MINUS (<code title="">-</code>)
1515      文字を含んだり、 U+002D HYPHEN-MINUS (<code title="">-</code>) 文字で終わったりしては[[MUST NOT:なりません]]。
1516    最後に、注釈は3文字の列 U+002D HYPHEN-MINUS、U+002D
1517      HYPHEN-MINUS、U+003E GREATER-THAN SIGN (<code title="">--&gt;</code>)
1518    で終わらなければ[[MUST:なりません]]。
1519    
1520    #en
1521    This specification defines the parsing rules for HTML documents,
1522      whether they are syntactically correct or not. Certain points in the
1523      parsing algorithm are said to be <dfn id=parse-error title="parse error">parse
1524      errors</dfn>. The error handling for parse errors is well-defined:
1525      user agents must either act as described below when encountering
1526      such problems, or must abort processing at the first error that they
1527      encounter for which they do not wish to apply the rules described
1528      below.
1529    #ja
1530    この仕様書は、 HTML 文書を、それが構文的に正しいか否かによらず、その構文解析を行うための規則を定義します。
1531    この構文解析算法のいくつかの地点は<dfn id=parse-error title="parse error">構文解析誤り</dfn>であるといいます。
1532    構文解析誤りの誤りの取り扱いは明確に定義するところであり、
1533    利用者エージェントは、
1534    そのような問題に遭遇した時に後述の通りに作用するか、
1535    または後述の規則を適用したくないような最初の誤りの時点で処理を停止するかのいずれかでなければ[[MUST NOT:なりません]]。

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.164

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24