/[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.35 by apache, Mon Aug 11 14:58:30 2008 UTC revision 1.85 by apache, Fri Oct 24 18:36:38 2008 UTC
# Line 1  Line 1 
1    
2    #pattern
3  #pattern  <span class=secno>* </span>The HTML syntax
4  <span class=secno>* </span>The HTML syntax  #ja
5  #ja  <span class=secno>$1 </span>HTML 構文
6  <span class=secno>$1 </span>HTML 構文  
7    #pattern
8  #pattern  <span class=secno>* </span>Writing HTML documents
9  <span class=secno>* </span>Writing HTML documents  #ja
10  #ja  <span class=secno>$1 </span>HTML 文書を書く
11  <span class=secno>$1 </span>HTML 文書を書く  
12    #en
 #en  
13  <em>This section only applies to documents, authoring tools, and markup  <em>This section only applies to documents, authoring tools, and markup
14     generators. In particular, it does not apply to conformance checkers;     generators. In particular, it does not apply to conformance checkers;
15     conformance checkers must use the requirements given in the next section     conformance checkers must use the requirements given in the next section
16     ("parsing HTML documents").</em>     ("parsing HTML documents").</em>
17  #ja  #ja
18  <em>この節は文書、著述ツール、マーク付け生成器にのみ適用されます。  <em>この節は文書、著述ツール、マーク付け生成器にのみ適用されます。
19  特に、適合性検査器には適用されません。  特に、適合性検査器には適用されません。
20  適合性検査器は次の節 (「HTML 文書の構文解析」) で与えられる要件を用いなければ[[MUST:なりません]]。</em>  適合性検査器は次の節 (「HTML 文書の構文解析」) で与えられる要件を用いなければ[[MUST:なりません]]。</em>
21    
22  #en  #en
23  Documents must consist of the following parts, in the given order:  Documents must consist of the following parts, in the given order:
24  #ja  #ja
25  文書は、次に示す部分により、次の順序で構成されなければ[[MUST:なりません]]。  文書は、次に示す部分により、次の順序で構成されなければ[[MUST:なりません]]。
26    
27  #en  #en
28  Optionally, a single U+FEFF BYTE ORDER MARK (BOM) character.  Optionally, a single U+FEFF BYTE ORDER MARK (BOM) character.
29  #ja  #ja
30  任意選択で、1つの U+FEFF BYTE ORDER MARK (BOM) 文字。  任意選択で、1つの U+FEFF BYTE ORDER MARK (BOM) 文字。
31    
32  #en  #en
33  Any number of <a href="#comments0" title=syntax-comments>comments</a>  Any number of <a href=#syntax-comments title=syntax-comments>comments</a>
34      and <a href="#space" title="space character">space characters</a>.      and <a href=#space-character title="space character">space characters</a>.
35  #ja  #ja
36  任意の個数の<a href="#comments0" title=syntax-comments>注釈</a>と<a href="#space" title="space character">間隔文字</a>。  任意の個数の<a href=#syntax-comments title=syntax-comments>注釈</a>と<a href=#space-character title="space character">間隔文字</a>。
37    
38  #en  #en
39  A <a href="#doctype5" title=syntax-doctype>DOCTYPE</a>.  A <a href=#syntax-doctype title=syntax-doctype>DOCTYPE</a>.
40  #ja  #ja
41  <a href="#doctype5" title=syntax-doctype>DOCTYPE</a>。  <a href=#syntax-doctype title=syntax-doctype>DOCTYPE</a>。
42    
43  #en  #en
44  The root element, in the form of an <code><a  The root element, in the form of an <code><a
45      href="#html">html</a></code> <a href="#elements3"      href=#the-html-element>html</a></code> <a href=#dom-form-elements
46      title=syntax-elements>element</a>.      title=syntax-elements>element</a>.
47  #ja  #ja
48  根要素を <code><a  根要素を <code><a
49      href="#html">html</a></code> <a href="#elements3"      href=#the-html-element>html</a></code> <a href=#dom-form-elements
50      title=syntax-elements>要素</a>の形で。      title=syntax-elements>要素</a>の形で。
51    
52  #en  #en
53  The various types of content mentioned above are described in the next  The various types of content mentioned above are described in the next
54     few sections.     few sections.
55  #ja  #ja
56  前述の各種の内容は、次の数個の節で説明します。  前述の各種の内容は、次の数個の節で説明します。
57    
58  #en  #en
59  In addition, there are some restrictions on how <span>character encoding  In addition, there are some restrictions on how <span>character encoding
60     declarations</span> are to be serialized, as discussed in the section on     declarations</span> are to be serialized, as discussed in the section on
61     that topic.     that topic.
62  #ja  #ja
63  加えて、<span>文字符号化宣言</span>をどう直列化するかについても、  加えて、<span>文字符号化宣言</span>をどう直列化するかについても、
64  それに関する節で説明した通り、いくつかの制限があります。  それに関する節で説明した通り、いくつかの制限があります。
65    
66  #en  #en
67  Space characters before the root <code><a href="#html">html</a></code>  Space characters before the root <code><a href=#the-html-element>html</a></code>
68      element, and space characters at the start of the <code><a      element, and space characters at the start of the <code><a
69      href="#html">html</a></code> element and before the <code><a      href=#the-html-element>html</a></code> element and before the <code><a
70      href="#head">head</a></code> element, will be dropped when the document      href=#the-head-element>head</a></code> element, will be dropped when the document
71      is parsed; space characters <em>after</em> the root <code><a      is parsed; space characters <em>after</em> the root <code><a
72      href="#html">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
73      the end of the <code><a href="#body0">body</a></code> element. Thus,      the end of the <code><a href=#the-body-element>body</a></code> element. Thus,
74      space characters around the root element do not round-trip.      space characters around the root element do not round-trip.
75  #ja  #ja
76  根 <code><a href="#html">html</a></code> 要素の前の間隔文字や、  根 <code><a href=#the-html-element>html</a></code> 要素の前の間隔文字や、
77  <code><a  <code><a
78      href="#html">html</a></code> 要素のはじめで <code><a      href=#the-html-element>html</a></code> 要素のはじめで <code><a
79      href="#head">head</a></code> 要素の前の間隔文字は、      href=#the-head-element>head</a></code> 要素の前の間隔文字は、
80  文書が構文解析される時に除去されます。根 <code><a  文書が構文解析される時に除去されます。根 <code><a
81      href="#html">html</a></code> 要素の<em>後</em>の間隔文字は、      href=#the-html-element>html</a></code> 要素の<em>後</em>の間隔文字は、
82  <code><a href="#body0">body</a></code> 要素の終わりにあったものとして構文解析されます。  <code><a href=#the-body-element>body</a></code> 要素の終わりにあったものとして構文解析されます。
83  従って、根要素の近辺の間隔文字は往復しません。  従って、根要素の近辺の間隔文字は往復しません。
84    
85    
86  #en  #en
87  It is suggested that newlines be inserted after the DOCTYPE, after any  It is suggested that newlines be inserted after the DOCTYPE, after any
88      comments that are before the root element, after the <code><a      comments that are before the root element, after the <code><a
89      href="#html">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
90      href="#omitted" title=syntax-tag-omission>omitted</a>), and after any      href=#syntax-tag-omission title=syntax-tag-omission>omitted</a>), and after any
91      comments that are inside the <code><a href="#html">html</a></code>      comments that are inside the <code><a href=#the-html-element>html</a></code>
92      element but before the <code><a href="#head">head</a></code> element.      element but before the <code><a href=#the-head-element>head</a></code> element.
93  #ja  #ja
94  DOCTYPE の後、  DOCTYPE の後、
95  根要素の前の注釈がある場合はその後、  根要素の前の注釈がある場合はその後、
96  <code><a  <code><a
97      href="#html">html</a></code> 要素の開始タグの後      href=#the-html-element>html</a></code> 要素の開始タグの後
98  (<a  (<a
99      href="#omitted" title=syntax-tag-omission>省略</a>しない場合)、      href=#syntax-tag-omission title=syntax-tag-omission>省略</a>しない場合)、
100  <code><a href="#html">html</a></code> 要素中で  <code><a href=#the-html-element>html</a></code> 要素中で
101  <code><a href="#head">head</a></code> 要素の前に注釈がある場合にはその後には、  <code><a href=#the-head-element>head</a></code> 要素の前に注釈がある場合にはその後には、
102  改行を挿入することをおすすめします。  改行を挿入することをおすすめします。
103    
104  #en  #en
105  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
106     attributes) are case-insensitive, but only for characters in the ranges     attributes) are case-insensitive, but only for characters in the ranges
107     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
108     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
109     convenience, in this section this is just referred to as     convenience, in this section this is just referred to as
110     "case-insensitive".     "case-insensitive".
111  #ja  #ja
112  HTML 構文中の多くの文字列 (例えば要素や属性の名前) は大文字と小文字を区別しませんが、  HTML 構文中の多くの文字列 (例えば要素や属性の名前) は大文字と小文字を区別しませんが、
113  区別しないのは範囲  区別しないのは範囲
114  U+0041 ~ U+005A (LATIN CAPITAL LETTER A ~ LATIN CAPITAL LETTER Z) と  U+0041 ~ U+005A (LATIN CAPITAL LETTER A ~ LATIN CAPITAL LETTER Z) と
115  範囲 U+0061 ~ U+007A (LATIN SMALL LETTER A ~ LATIN SMALL LETTER Z)  範囲 U+0061 ~ U+007A (LATIN SMALL LETTER A ~ LATIN SMALL LETTER Z)
116  の文字についてのみです。便宜上、この節ではこれを単に「大文字・小文字を区別しない」と呼びます。  の文字についてのみです。便宜上、この節ではこれを単に「大文字・小文字を区別しない」と呼びます。
117    
118    
119  #pattern  #pattern
120  <span class=secno>* </span>The DOCTYPE  <span class=secno>* </span>The DOCTYPE
121  #ja  #ja
122  <span class=secno>$1 </span>DOCTYPE  <span class=secno>$1 </span>DOCTYPE
123    
124  #en  #en
125  A <dfn id=doctype5 title=syntax-doctype>DOCTYPE</dfn> is a mostly  A <dfn id=syntax-doctype title=syntax-doctype>DOCTYPE</dfn> is a mostly
126     useless, but required, header.     useless, but required, header.
127  #ja  #ja
128  <dfn id=doctype5 title=syntax-doctype>DOCTYPE</dfn> はほとんど無意味ですが、  <dfn id=syntax-doctype title=syntax-doctype>DOCTYPE</dfn> はほとんど無意味ですが、
129  [[REQUIRED:必須]]の頭部です。  [[REQUIRED:必須]]の頭部です。
130    
131  #en  #en
132  DOCTYPEs are required for legacy reasons. When omitted,  DOCTYPEs are required for legacy reasons. When omitted,
133     browsers tend to use a different rendering mode that is incompatible with     browsers tend to use a different rendering mode that is incompatible with
134     some specifications. Including the DOCTYPE in a document ensures that the     some specifications. Including the DOCTYPE in a document ensures that the
135     browser makes a best-effort attempt at following the relevant     browser makes a best-effort attempt at following the relevant
136     specifications.     specifications.
137  #ja  #ja
138  DOCTYPE は遺物的な理由で[[REQUIRED:必須]]です。  DOCTYPE は遺物的な理由で[[REQUIRED:必須]]です。
139  省略すると、ブラウザはいくつかの仕様書と非互換な異なるレンダリング・モードを使おうとします。  省略すると、ブラウザはいくつかの仕様書と非互換な異なるレンダリング・モードを使おうとします。
140  DOCTYPE を文書に含めることによってブラウザに関係する仕様書に従うよう最善の努力を試みさせるようにします。  DOCTYPE を文書に含めることによってブラウザに関係する仕様書に従うよう最善の努力を試みさせるようにします。
141    
142  #en  #en
143  A DOCTYPE must consist of the following characters, in this order:  A DOCTYPE must consist of the following characters, in this order:
144  #ja  #ja
145  DOCTYPE は、次の文字により次の順序で構成されなければ[[MUST:なりません]]。  DOCTYPE は、次の文字により次の順序で構成されなければ[[MUST:なりません]]。
146    
147  #en  #en
148  A U+003C LESS-THAN SIGN (<code>&lt;</code>) character.  A U+003C LESS-THAN SIGN (<code>&lt;</code>) character.
149  #ja  #ja
150  U+003C LESS-THAN SIGN (<code>&lt;</code>) 文字。  U+003C LESS-THAN SIGN (<code>&lt;</code>) 文字。
151    
152  #en  #en
153  A U+0021 EXCLAMATION MARK (<code>!</code>) character.  A U+0021 EXCLAMATION MARK (<code>!</code>) character.
154  #ja  #ja
155  U+0021 EXCLAMATION MARK (<code>!</code>) 文字。  U+0021 EXCLAMATION MARK (<code>!</code>) 文字。
156    
157  #en  #en
158  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
159      character.      character.
160  #ja  #ja
161  U+0044 LATIN CAPITAL LETTER D 文字か U+0064 LATIN SMALL LETTER D 文字。  U+0044 LATIN CAPITAL LETTER D 文字か U+0064 LATIN SMALL LETTER D 文字。
162    
163  #en  #en
164  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
165      character.      character.
166  #ja  #ja
167  U+004F LATIN CAPITAL LETTER O 文字か U+006F LATIN SMALL LETTER O 文字。  U+004F LATIN CAPITAL LETTER O 文字か U+006F LATIN SMALL LETTER O 文字。
168    
169  #en  #en
170  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
171      character.      character.
172  #ja  #ja
173  U+0043 LATIN CAPITAL LETTER C 文字か U+0063 LATIN SMALL LETTER C 文字。  U+0043 LATIN CAPITAL LETTER C 文字か U+0063 LATIN SMALL LETTER C 文字。
174    
175  #en  #en
176  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
177      character.      character.
178  #ja  #ja
179  U+0054 LATIN CAPITAL LETTER T 文字か U+0074 LATIN SMALL LETTER T 文字。  U+0054 LATIN CAPITAL LETTER T 文字か U+0074 LATIN SMALL LETTER T 文字。
180    
181  #en  #en
182  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
183      character.      character.
184  #ja  #ja
185  U+0059 LATIN CAPITAL LETTER Y 文字か U+0079 LATIN SMALL LETTER Y 文字。  U+0059 LATIN CAPITAL LETTER Y 文字か U+0079 LATIN SMALL LETTER Y 文字。
186    
187  #en  #en
188  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
189      character.      character.
190  #ja  #ja
191  U+0050 LATIN CAPITAL LETTER P 文字か U+0070 LATIN SMALL LETTER P 文字。  U+0050 LATIN CAPITAL LETTER P 文字か U+0070 LATIN SMALL LETTER P 文字。
192    
193    
194  #en  #en
195  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
196      character.      character.
197  #ja  #ja
198  U+0045 LATIN CAPITAL LETTER E 文字か U+0065 LATIN SMALL LETTER E 文字。  U+0045 LATIN CAPITAL LETTER E 文字か U+0065 LATIN SMALL LETTER E 文字。
199    
200  #en  #en
201  One or more <a href="#space" title="space character">space  One or more <a href=#space-character title="space character">space
202      characters</a>.      characters</a>.
203  #ja  #ja
204  1つ以上の<a href="#space" title="space character">間隔文字</a>。  1つ以上の<a href=#space-character title="space character">間隔文字</a>。
205    
206  #en  #en
207  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
208      character.      character.
209  #ja  #ja
210  U+0048 LATIN CAPITAL LETTER H 文字か U+0068 LATIN SMALL LETTER H 文字。  U+0048 LATIN CAPITAL LETTER H 文字か U+0068 LATIN SMALL LETTER H 文字。
211    
212    
213  #en  #en
214  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
215      character.      character.
216  #ja  #ja
217  U+004D LATIN CAPITAL LETTER M 文字か U+006D LATIN SMALL LETTER M 文字。  U+004D LATIN CAPITAL LETTER M 文字か U+006D LATIN SMALL LETTER M 文字。
218    
219  #en  #en
220  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
221      character.      character.
222  #ja  #ja
223  U+004C LATIN CAPITAL LETTER L 文字か U+006C LATIN SMALL LETTER L 文字。  U+004C LATIN CAPITAL LETTER L 文字か U+006C LATIN SMALL LETTER L 文字。
224    
225  #en  #en
226  Zero or more <a href="#space" title="space character">space  Zero or more <a href=#space-character title="space character">space
227      characters</a>.      characters</a>.
228  #ja  #ja
229  零個以上の<a href="#space" title="space character">間隔文字</a>。  零個以上の<a href=#space-character title="space character">間隔文字</a>。
230    
231  #en  #en
232  A U+003E GREATER-THAN SIGN (<code>&gt;</code>) character.  A U+003E GREATER-THAN SIGN (<code>&gt;</code>) character.
233  #ja  #ja
234  U+003E GREATER-THAN SIGN (<code>&gt;</code>) 文字。  U+003E GREATER-THAN SIGN (<code>&gt;</code>) 文字。
235    
236  #en  #en
237  In other words, <code>&lt;!DOCTYPE HTML></code>,  In other words, <code>&lt;!DOCTYPE HTML></code>,
238     case-insensitively.     case-insensitively.
239    #ja
240    つまり、大文字または小文字の <code>&lt;!DOCTYPE HTML></code> です。
241    
242    #pattern
243    <span class=secno>* </span>Elements
244    #ja
245    <span class=secno>$1 </span>要素
246    
247    #en
248    There are five different kinds of <dfn id=dom-form-elements
249       title=syntax-elements>elements</dfn>: void elements, CDATA elements,
250       RCDATA elements, foreign elements, and normal elements.
251    #ja
252    <dfn id=dom-form-elements
253       title=syntax-elements>要素</dfn>には5種類あります。
254    空隙要素、 CDATA 要素、 RCDATA 要素、外来要素、通常要素です。
255    
256    #en
257    <dfn id=void-elements>Void elements</dfn>
258    #ja
259    <dfn id=void-elements>空隙要素</dfn>
260    
261    #en
262    CDATA elements
263    #ja
264    CDATA 要素
265    
266    #en
267    RCDATA elements
268    #ja
269    RCDATA 要素
270    
271    #en
272    Foreign elements
273    #ja
274    外来要素
275    
276    #en
277    Elements from the <a href=#mathml-namespace>MathML namespace</a> <!--XXXSVG
278       and the <span>SVG namespace</span>.
279    #ja
280    <a href=#mathml-namespace>MathML 名前空間</a>からの要素。<!--XXXSVG
281       and the <span>SVG namespace</span>.
282    
283    #en
284    Normal elements
285    #ja
286    通常要素
287    
288    #en
289    All other allowed <a href=#html-elements>HTML elements</a> are
290        normal elements.
291    #ja
292    他の全ての認められている<a href=#html-elements>HTML 要素</a>は通常要素です。
293    
294    #en
295    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>.
296    #ja
297    根要素を、 <code><a href=#the-html-element>html</a></code> <a href=#syntax-elements title=syntax-elements>要素</a>として。
298    
299    #en
300    Optionally, a <a href=#doctype-legacy-string>DOCTYPE legacy string</a> (defined below).
301    #ja
302    任意選択で、 <a href=#doctype-legacy-string>DOCTYPE 遺物文字列</a> (後で定義します)。
303    
304    #en
305    In other words, <code>&lt;!DOCTYPE HTML&gt;</code>,
306      case-insensitively.
307    #ja
308    すなわち、大文字または小文字の <code>&lt;!DOCTYPE HTML&gt;</code>。
309    
310    #en
311    For the purposes of XSLT generators that cannot output HTML
312      markup without a DOCTYPE, a <dfn id=doctype-legacy-string>DOCTYPE legacy string</dfn> may be
313      inserted into the DOCTYPE (in the position defined above). This
314      string must consist of:
315    #ja
316    DOCTYPE なしの HTML マーク付けを出力できない XSLT 生成器のため、
317    <dfn id=doctype-legacy-string>DOCTYPE 遺物文字列</dfn>を
318    DOCTYPE (の前述の位置) に挿入して[[MAY:構いません]]。
319    この文字列は次のものから構成されなければ[[MUST:なりません]]。
320    
321    #pattern
322    A * or * character.
323    #ja
324    $1 文字か $2 文字。
325    
326    #en
327    The literal string "<code title="">XSLT-compat</code>".
328    #ja
329    生の文字列「<code title="">XSLT-compat</code>」。
330    
331    #en
332    The same character as in item 9 (a matching U+0022 QUOTATION MARK or U+0027 APOSTROPHE character).
333    #ja
334    項目9と同じ文字 (U+0022 QUOTATION MARK 文字または U+0027 APOSTROPHE 文字の一致する方)。
335    
336    #en
337    In other words, <code>&lt;!DOCTYPE HTML PUBLIC
338      "XSLT-compat"&gt;</code> or <code>&lt;!DOCTYPE HTML PUBLIC
339      'XSLT-compat'&gt;</code>, case-insensitively except for the bit in
340      quotes.
341    #ja
342    すなわち、引用符内以外は大文字か小文字の <code>&lt;!DOCTYPE HTML PUBLIC
343      "XSLT-compat"&gt;</code> または <code>&lt;!DOCTYPE HTML PUBLIC
344      'XSLT-compat'&gt;</code>。
345    
346    #en
347    The <a href=#doctype-legacy-string>DOCTYPE legacy string</a> should not be used unless
348      the document is generated from XSLT.
349    #ja
350    <a href=#doctype-legacy-string>DOCTYPE 遺物文字列</a>は XSLT
351    で生成された文書を除き使用する[[SHOULD NOT:べきではありません]]。
352    
353    #en
354    There are five different kinds of <dfn id=syntax-elements title=syntax-elements>elements</dfn>: void elements, CDATA
355      elements, RCDATA elements, foreign elements, and normal
356      elements.
357    #ja
358    <dfn id=syntax-elements title=syntax-elements>要素</dfn>には、
359    空隙要素、 CDATA 要素、 RCDATA 要素、外来要素、通常要素の5つの異なる種類があります。
360    
361    #en
362    <dfn id=syntax-tags title=syntax-tags>Tags</dfn> are used to delimit the start
363      and end of elements in the markup. CDATA, RCDATA, and normal
364      elements have a <a href=#syntax-start-tags title=syntax-start-tags>start tag</a> to
365      indicate where they begin, and an <a href=#syntax-end-tags title=syntax-end-tags>end
366      tag</a> to indicate where they end. The start and end tags of
367      certain normal elements can be <a href=#syntax-tag-omission title=syntax-tag-omission>omitted</a>, as described
368      later. Those that cannot be omitted must not be omitted. <a href=#void-elements>Void
369      elements</a> only have a start tag; end tags must not be
370      specified for void elements. Foreign elements must either have a
371      start tag and an end tag, or a start tag that is marked as
372      self-closing, in which case they must not have an end tag.
373    #ja
374    <dfn id=syntax-tags title=syntax-tags>タグ</dfn>は、
375    マーク付けにおいて要素の開始と終了を区切るために使います。
376    CDATA 要素、 RCDATA 要素、通常要素は、
377    その始まる位置を示す<a href=#syntax-start-tags title=syntax-start-tags>開始タグ</a>と、
378    その終わる位置を示す<a href=#syntax-end-tags title=syntax-end-tags>終了タグ</a>を持ちます。
379    特定の通常要素の開始タグと終了タグは、
380    後述の通り<a href=#syntax-tag-omission title=syntax-tag-omission>省略</a>することができます。
381    省略できないものは省略しては[[MUST NOT:なりません]]。
382    <a href=#void-elements>空隙要素</a>は開始タグのみを持ちます。
383    空隙要素に終了タグを指定しては[[MUST NOT:なりません]]。
384    外来要素は開始タグと終了タグを持つか、または開始タグを自己閉塞と印付けするかのいずれかで[[MUST:なければなりらず]]、
385    後者の場合終了タグを持っては[[MUST NOT:なりません]]。
386    
387    
388    #en
389    The contents of the element must be placed between just after the
390      start tag (which <a href=#syntax-tag-omission title=syntax-tag-omission>might be implied,
391      in certain cases</a>) and just before the end tag (which again,
392      <a href=#syntax-tag-omission title=syntax-tag-omission>might be implied in certain
393      cases</a>). The exact allowed contents of each individual element
394      depends on the content model of that element, as described earlier
395      in this specification. Elements must not contain content that their
396      content model disallows. In addition to the restrictions placed on
397      the contents by those content models, however, the five types of
398      elements have additional <em>syntactic</em> requirements.
399    #ja
400    要素の内容は開始タグ (これは<a href=#syntax-tag-omission title=syntax-tag-omission>場合によっては暗示的なものかもしれません</a>。)
401    の直後と終了タグ (これも<a href=#syntax-tag-omission title=syntax-tag-omission>場合によっては暗示的なものかもしれません</a>。)
402    の直前の間に配置しなければ[[MUST:なりません]]。
403    各要素それぞれで認められる内容は正確には、この仕様書の先の方で説明した当該要素の内容モデルに依存します。
404    要素はその内容モデルが禁じた内容を含んではなりません。しかも、
405    各要素の内容モデルによって内容に課した制約に加えて、5種類の要素には追加の<em>構文的</em>要件があります。
406    
407    #en
408    <a href=#void-elements>Void elements</a> can't have any contents (since there's
409      no end tag, no content can be put between the start tag and the end
410      tag).
411    #ja
412    <a href=#void-elements>空隙要素</a>は内容を持つことができません
413    (終了タグがないので、内容を開始タグと終了タグの間に置くことができません)。
414    
415    #en
416    CDATA elements can have <a href=#syntax-text title=syntax-text>text</a>,
417      though it has <a href=#cdata-rcdata-restrictions>restrictions</a>
418      described below.
419    #ja
420    CDATA 要素は<a href=#syntax-text title=syntax-text>テキスト</a>を持つことができますが、
421    後述の<a href=#cdata-rcdata-restrictions>制約</a>があります。
422    
423    #en
424    RCDATA elements can have <a href=#syntax-text title=syntax-text>text</a>
425      and <a href=#syntax-charref title=syntax-charref>character references</a>, but
426      the text must not contain an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>.
427      There are also <a href=#cdata-rcdata-restrictions>further
428      restrictions</a> described below.
429    #ja
430    RCDATA 要素は<a href=#syntax-text title=syntax-text>テキスト</a>と<a href=#syntax-charref title=syntax-charref>文字参照</a>を持つことができますが、
431    テキストは<a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</a>を含んでは[[MUST NOT:なりません]]。
432    後述の<a href=#cdata-rcdata-restrictions>追加制約</a>もあります。
433    
434    #en
435    Foreign elements whose start tag is marked as self-closing can't
436      have any contents (since, again, as there's no end tag, no content
437      can be put between the start tag and the end tag). Foreign elements
438      whose start tag is <em>not</em> marked as self-closing can have
439      <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
440      contain the character U+003C LESS-THAN SIGN (<code>&lt;</code>) or
441      an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous
442      ampersand</a>.
443    #ja
444    開始タグが自己閉塞と印付けされた外来要素は内容を持つことができません
445    (やはり、終了タグがないため、内容を開始タグと終了タグの間に置くことができないからです)。
446    開始タグが自己閉塞と印付けされて<em>いない</em>外来要素は<a href=#syntax-text title=syntax-text>テキスト</a>、
447    <a href=#syntax-charref title=syntax-charref>文字参照</a>、
448    <a href=#syntax-cdata title=syntax-cdata>CDATA 区間</a>、
449    他の<a href=#syntax-elements title=syntax-elements>要素</a>、
450    <a href=#syntax-comments title=syntax-comments>注釈</a>を持つことができますが、
451    テキストは文字 U+003C LESS-THAN SIGN (<code>&lt;</code>)
452    や<a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</a>を含んでは[[MUST NOT:なりません]]。
453    
454    #en
455    Normal elements can have <a href=#syntax-text title=syntax-text>text</a>,
456      <a href=#syntax-charref title=syntax-charref>character references</a>, other
457      <a href=#syntax-elements title=syntax-elements>elements</a>, and <a href=#syntax-comments title=syntax-comments>comments</a>, but the text must not
458      contain the character U+003C LESS-THAN SIGN (<code>&lt;</code>) or
459      an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous
460      ampersand</a>. Some normal elements also have <a href=#element-restrictions>yet more restrictions</a> on what
461      content they are allowed to hold, beyond the restrictions imposed by
462      the content model and those described in this paragraph. Those
463      restrictions are described below.
464    #ja
465    通常要素は<a href=#syntax-text title=syntax-text>テキスト</a>、
466    <a href=#syntax-charref title=syntax-charref>文字参照</a>、
467    他の<a href=#syntax-elements title=syntax-elements>要素</a>、
468    <a href=#syntax-comments title=syntax-comments>注釈</a>を持つことができますが、
469    テキストは文字 U+003C LESS-THAN SIGN (<code>&lt;</code>)
470    や<a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>曖昧アンド記号</a>を含んでは[[MUST NOT:なりません]]。
471    いくつかの通常要素は、保持することが認められる内容に関して、
472    内容モデルにより課される制約やこの段落で説明した制約に加え、
473    <a href=#element-restrictions>更に追加の制約</a>をも有します。
474    その制約については後述します。
475    
476    #en
477    Tags contain a <dfn id=syntax-tag-name title=syntax-tag-name>tag name</dfn>,
478      giving the element's name. HTML elements all have names that only
479      use characters in the range U+0030 DIGIT ZERO ..  U+0039 DIGIT NINE,
480      U+0061 LATIN SMALL LETTER A .. U+007A LATIN SMALL LETTER Z, U+0041
481      LATIN CAPITAL LETTER A .. U+005A LATIN CAPITAL LETTER Z, and U+002D
482      HYPHEN-MINUS (<code>-</code>). In the HTML syntax, tag names may be
483      written with any mix of lower- and uppercase letters that, when
484      converted to all-lowercase, matches the element's tag name; tag
485      names are case-insensitive.
486    #ja
487    タグは<dfn id=syntax-tag-name title=syntax-tag-name>タグ名</dfn>を持ち、
488    これが要素の名前を与えます。
489    HTML 要素はすべて、範囲 U+0030 DIGIT ZERO ~ U+0039 DIGIT NINE、
490    U+0061 LATIN SMALL LETTER A ~ U+007A LATIN SMALL LETTER Z、U+0041
491      LATIN CAPITAL LETTER A ~ U+005A LATIN CAPITAL LETTER Z、 U+002D
492      HYPHEN-MINUS (<code>-</code>) の文字のみを使った名前を持ちます。
493    HTML 構文では、タグ名はすべて小文字に変換した時に要素のタグ名に一致するような任意の小文字と大文字の組み合わせで書いて[[MAY:構いません]]。
494    つまり、タグ名は大文字・小文字を区別しません。
495    
496    
497    #pattern
498    <span class=secno>* </span>Start tags
499    #ja
500    <span class=secno>$1 </span>開始タグ
501    
502    #en
503    <dfn id=syntax-start-tags title=syntax-start-tags>Start tags</dfn> must have the
504      following format:
505    #ja
506    <dfn id=syntax-start-tags title=syntax-start-tags>開始タグ</dfn>は次の書式でなければ[[MUST:なりません]]。
507    
508    #en
509    The first character of a start tag must be a U+003C LESS-THAN
510       SIGN (<code>&lt;</code>).
511    #ja
512    開始タグの最初の文字は U+003C LESS-THAN
513       SIGN (<code>&lt;</code>) でなければ[[MUST:なりません]]。
514    
515    #en
516    The next few characters of a start tag must be the element's
517       <a href=#syntax-tag-name title=syntax-tag-name>tag name</a>.
518    #ja
519    開始タグの次の数文字は要素の<a href=#syntax-tag-name title=syntax-tag-name>タグ名</a>でなければ[[MUST:なりません]]。
520    
521    #en
522    If there are to be any attributes in the next step, there must
523       first be one or more <a href=#space-character title="space character">space
524       characters</a>.
525    #ja
526    次の段階で属性が存在する場合には、まず1文字以上の<a href=#space-character title="space character">間隔文字</a>がなければ[[MUST:なりません]]。
527    
528    #en
529    Then, the start tag may have a number of attributes, the <a href=#syntax-attributes title=syntax-attributes>syntax for which</a> is described
530       below. Attributes may be separated from each other by one or more
531       <a href=#space-character title="space character">space characters</a>.
532    #ja
533    その後、開始タグは後述の<a href=#syntax-attributes title=syntax-attributes>構文</a>に沿った数々の属性を持って[[MAY:構いません]]。
534    属性は1つ以上の<a href=#space-character title="space character">間隔文字</a>で互いに分離して[[MAY:構いません]]。
535    
536    #en
537    After the attributes, there may be one or more <a href=#space-character title="space character">space characters</a>. (Some attributes
538       are required to be followed by a space. See the <a href=#syntax-attributes title=syntax-attributes>attributes section</a> below.)
539    #ja
540    属性の後に、1文字以上の<a href=#space-character title="space character">間隔文字</a>があって[[MAY:構いません]]。
541    (いくつかの属性の後には間隔が[[REQUIRED:必須]]です。後述の<a href=#syntax-attributes title=syntax-attributes>属性の節</a>をご覧ください。)
542    
543    #en
544    Then, if the element is one of the <a href=#void-elements>void elements</a>,
545       or if the element is a foreign element, then there may be a single
546       U+002F SOLIDUS (<code>/</code>) character. This character has no
547       effect on void elements, but on foreign elements it marks the start
548       tag as self-closing.
549    #ja
550    要素が<a href=#void-elements>空隙要素</a>の1つである場合や、
551    要素が外来要素である場合、 U+002F SOLIDUS (<code>/</code>) 文字が1つあっても[[MAY:構いません]]。
552    この文字は空隙要素にあっては何の効果もありませんが、
553    外来要素にあっては開始タグを自己閉塞と印付けします。
554    
555    #en
556    Finally, start tags must be closed by a U+003E GREATER-THAN
557       SIGN (<code>&gt;</code>) character.
558    #ja
559    最後に、開始タグは U+003E GREATER-THAN
560       SIGN (<code>&gt;</code>) もjいで閉じなければ[[MUST:なりません]]。
561    
562    #pattern
563    <span class=secno>* </span>End tags
564    #ja
565    <span class=secno>$1 </span>終了タグ
566    
567    #en
568    <dfn id=syntax-end-tags title=syntax-end-tags>End tags</dfn> must have the
569      following format:
570    #ja
571    <dfn id=syntax-end-tags title=syntax-end-tags>終了タグ</dfn>は次の書式でなければ[[MUST:なりません]]。
572    
573    #en
574    The first character of an end tag must be a U+003C LESS-THAN
575       SIGN (<code>&lt;</code>).
576    #ja
577    終了タグの最初の文字は U+003C LESS-THAN
578       SIGN (<code>&lt;</code>) でなければ[[MUST:なりません]]。
579    
580    #en
581    The second character of an end tag must be a U+002F SOLIDUS
582       (<code>/</code>).
583    #ja
584    終了タグの2番目の文字は U+002F SOLIDUS
585       (<code>/</code>) でなければ[[MUST:なりません]]。
586    
587    #en
588    The next few characters of an end tag must be the element's
589       <a href=#syntax-tag-name title=syntax-tag-name>tag name</a>.
590    #ja
591    終了タグの次の数文字は要素の<a href=#syntax-tag-name title=syntax-tag-name>タグ名</a>でなければ[[MUST:なりません]]。
592    
593    #en
594    After the tag name, there may be one or more <a href=#space-character title="space
595       character">space characters</a>.
596    #ja
597    タグ名の後、1文字以上の<a href=#space-character title="space
598       character">間隔文字</a>があって[[MAY:構いません]]。
599    
600    #en
601    Finally, end tags must be closed by a U+003E GREATER-THAN
602       SIGN (<code>&gt;</code>) character.
603    #ja
604    最後に、終了タグは U+003E GREATER-THAN
605       SIGN (<code>&gt;</code>) 文字により閉じなければ[[MUST:なりません]]。
606    
607    #pattern
608    <span class=secno>* </span>Attributes
609    #ja
610    <span class=secno>$1 </span>属性
611    
612    #en
613    <dfn id=syntax-start-tags title=syntax-start-tags>Start tags</dfn> must have the
614      following format:
615    #ja
616    <dfn id=syntax-start-tags title=syntax-start-tags>開始タグ</dfn>は次の書式でなければ[[MUST:なりません]]。
617      following format:
618    
619    #en
620    <dfn id=syntax-attributes title=syntax-attributes>Attributes</dfn> for an element
621      are expressed inside the element's start tag.
622    #ja
623    要素の<dfn id=syntax-attributes title=syntax-attributes>属性</dfn>は、
624    当該要素の開始タグの内側で表現されます。
625    
626    #en
627    Attributes have a name and a value. <dfn id=syntax-attribute-name title=syntax-attribute-name>Attribute names</dfn> must consist of
628      one or more characters other than the <a href=#space-character title="space
629      character">space characters</a>, U+0000 NULL, U+0022 QUOTATION
630      MARK ("), U+0027 APOSTROPHE ('), U+003E GREATER-THAN SIGN
631      (&gt;), U+002F SOLIDUS (/), and U+003D EQUALS SIGN (=) characters,
632      the control characters, and any characters that are not defined by
633      Unicode. In the HTML syntax, attribute names may be written with any
634      mix of lower- and uppercase letters that are an <a href=#ascii-case-insensitive>ASCII
635      case-insensitive</a> match for the attribute's name.
636    #ja
637    属性は名前と値を持ちます。
638    <dfn id=syntax-attribute-name title=syntax-attribute-name>属性名</dfn>は、
639    <a href=#space-character title="space
640      character">間隔文字</a>、U+0000 NULL、U+0022 QUOTATION
641      MARK (")、U+0027 APOSTROPHE (')、U+003E GREATER-THAN SIGN
642      (&gt;)、U+002F SOLIDUS (/)、U+003D EQUALS SIGN (=) のいずれかの文字、
643    制御文字、 Unicode で定義されていない文字以外の文字1文字以上で構成されなければ[[MUST:なりません]]。
644    HTML 構文では、属性名は当該属性の名前に
645    <a href=#ascii-case-insensitive>ASCII
646    大文字・小文字不区別</a>で一致する任意の小文字・大文字の組み合わせで書いて[[MAY:構いません]]。
647    
648    #en
649    <dfn id=syntax-attribute-value title=syntax-attribute-value>Attribute values</dfn> are a
650      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
651      additional restriction that the text cannot contain an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>.
652  #ja  #ja
653  つまり、大文字または小文字の <code>&lt;!DOCTYPE HTML></code> です。  <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>を含むことができないとの追加の制限があります。
654    
655  #pattern  #en
656  <span class=secno>* </span>Elements  Attributes can be specified in four different ways:
657  #ja  #ja
 <span class=secno>$1 </span>要素  
658    属性は4種類の方法で指定できます。

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.85

[email protected]
ViewVC Help
Powered by ViewVC 1.1.24