#pattern * The HTML syntax #ja $1 HTML 構文 #pattern * Writing HTML documents #ja $1 HTML 文書を書く #en This section only applies to documents, authoring tools, and markup generators. In particular, it does not apply to conformance checkers; conformance checkers must use the requirements given in the next section ("parsing HTML documents"). #ja この節は文書、著述ツール、マーク付け生成器にのみ適用されます。 特に、適合性検査器には適用されません。 適合性検査器は次の節 (「HTML 文書の構文解析」) で与えられる要件を用いなければ[[MUST:なりません]]。 #en Documents must consist of the following parts, in the given order: #ja 文書は、次に示す部分により、次の順序で構成されなければ[[MUST:なりません]]。 #en Optionally, a single U+FEFF BYTE ORDER MARK (BOM) character. #ja 任意選択で、1つの U+FEFF BYTE ORDER MARK (BOM) 文字。 #en Any number of comments and space characters. #ja 任意の個数の注釈間隔文字。 #en A DOCTYPE. #ja DOCTYPE。 #en The root element, in the form of an html element. #ja 根要素を html 要素の形で。 #en The various types of content mentioned above are described in the next few sections. #ja 前述の各種の内容は、次の数個の節で説明します。 #en In addition, there are some restrictions on how character encoding declarations are to be serialized, as discussed in the section on that topic. #ja 加えて、文字符号化宣言をどう直列化するかについても、 それに関する節で説明した通り、いくつかの制限があります。 #en Space characters before the root html element, and space characters at the start of the html element and before the head element, will be dropped when the document is parsed; space characters after the root html element will be parsed as if they were at the end of the body element. Thus, space characters around the root element do not round-trip. #ja 根 html 要素の前の間隔文字や、 html 要素のはじめで head 要素の前の間隔文字は、 文書が構文解析される時に除去されます。根 html 要素のの間隔文字は、 body 要素の終わりにあったものとして構文解析されます。 従って、根要素の近辺の間隔文字は往復しません。 #en It is suggested that newlines be inserted after the DOCTYPE, after any comments that are before the root element, after the html element's start tag (if it is not omitted), and after any comments that are inside the html element but before the head element. #ja DOCTYPE の後、 根要素の前の注釈がある場合はその後、 html 要素の開始タグの後 (省略しない場合)、 html 要素中で head 要素の前に注釈がある場合にはその後には、 改行を挿入することをおすすめします。