Parent Directory
|
Revision Log
by remote user 'guest'
| 1 | apache | 1.80 | #pattern |
| 2 | <span class=secno>* </span>The HTML syntax | ||
| 3 | #ja | ||
| 4 | <span class=secno>$1 </span>HTML 構文 | ||
| 5 | |||
| 6 | #pattern | ||
| 7 | <span class=secno>* </span>Writing HTML documents | ||
| 8 | #ja | ||
| 9 | <span class=secno>$1 </span>HTML 文書を書く | ||
| 10 | |||
| 11 | #en | ||
| 12 | apache | 1.4 | <em>This section only applies to documents, authoring tools, and markup |
| 13 | generators. In particular, it does not apply to conformance checkers; | ||
| 14 | conformance checkers must use the requirements given in the next section | ||
| 15 | apache | 1.80 | ("parsing HTML documents").</em> |
| 16 | #ja | ||
| 17 | apache | 1.4 | <em>この節は文書、著述ツール、マーク付け生成器にのみ適用されます。 |
| 18 | 特に、適合性検査器には適用されません。 | ||
| 19 | apache | 1.80 | 適合性検査器は次の節 (「HTML 文書の構文解析」) で与えられる要件を用いなければ[[MUST:なりません]]。</em> |
| 20 | |||
| 21 | #en | ||
| 22 | Documents must consist of the following parts, in the given order: | ||
| 23 | #ja | ||
| 24 | 文書は、次に示す部分により、次の順序で構成されなければ[[MUST:なりません]]。 | ||
| 25 | |||
| 26 | #en | ||
| 27 | Optionally, a single U+FEFF BYTE ORDER MARK (BOM) character. | ||
| 28 | #ja | ||
| 29 | 任意選択で、1つの U+FEFF BYTE ORDER MARK (BOM) 文字。 | ||
| 30 | |||
| 31 | #en | ||
| 32 | wakaba | 1.44 | Any number of <a href=#syntax-comments title=syntax-comments>comments</a> |
| 33 | apache | 1.80 | and <a href=#space-character title="space character">space characters</a>. |
| 34 | #ja | ||
| 35 | 任意の個数の<a href=#syntax-comments title=syntax-comments>注釈</a>と<a href=#space-character title="space character">間隔文字</a>。 | ||
| 36 | |||
| 37 | #en | ||
| 38 | A <a href=#syntax-doctype title=syntax-doctype>DOCTYPE</a>. | ||
| 39 | #ja | ||
| 40 | <a href=#syntax-doctype title=syntax-doctype>DOCTYPE</a>。 | ||
| 41 | |||
| 42 | #en | ||
| 43 | apache | 1.9 | The root element, in the form of an <code><a |
| 44 | wakaba | 1.44 | href=#the-html-element>html</a></code> <a href=#dom-form-elements |
| 45 | apache | 1.80 | title=syntax-elements>element</a>. |
| 46 | #ja | ||
| 47 | apache | 1.9 | 根要素を <code><a |
| 48 | wakaba | 1.44 | href=#the-html-element>html</a></code> <a href=#dom-form-elements |
| 49 | apache | 1.80 | title=syntax-elements>要素</a>の形で。 |
| 50 | |||
| 51 | #en | ||
| 52 | apache | 1.10 | The various types of content mentioned above are described in the next |
| 53 | apache | 1.80 | few sections. |
| 54 | #ja | ||
| 55 | 前述の各種の内容は、次の数個の節で説明します。 | ||
| 56 | |||
| 57 | #en | ||
| 58 | apache | 1.11 | In addition, there are some restrictions on how <span>character encoding |
| 59 | declarations</span> are to be serialized, as discussed in the section on | ||
| 60 | apache | 1.80 | that topic. |
| 61 | #ja | ||
| 62 | apache | 1.11 | 加えて、<span>文字符号化宣言</span>をどう直列化するかについても、 |
| 63 | apache | 1.80 | それに関する節で説明した通り、いくつかの制限があります。 |
| 64 | |||
| 65 | #en | ||
| 66 | wakaba | 1.44 | Space characters before the root <code><a href=#the-html-element>html</a></code> |
| 67 | apache | 1.12 | element, and space characters at the start of the <code><a |
| 68 | wakaba | 1.44 | href=#the-html-element>html</a></code> element and before the <code><a |
| 69 | href=#the-head-element>head</a></code> element, will be dropped when the document | ||
| 70 | apache | 1.12 | is parsed; space characters <em>after</em> the root <code><a |
| 71 | wakaba | 1.44 | 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, | ||
| 73 | apache | 1.80 | space characters around the root element do not round-trip. |
| 74 | #ja | ||
| 75 | wakaba | 1.44 | 根 <code><a href=#the-html-element>html</a></code> 要素の前の間隔文字や、 |
| 76 | apache | 1.12 | <code><a |
| 77 | wakaba | 1.44 | href=#the-html-element>html</a></code> 要素のはじめで <code><a |
| 78 | href=#the-head-element>head</a></code> 要素の前の間隔文字は、 | ||
| 79 | apache | 1.12 | 文書が構文解析される時に除去されます。根 <code><a |
| 80 | wakaba | 1.44 | href=#the-html-element>html</a></code> 要素の<em>後</em>の間隔文字は、 |
| 81 | <code><a href=#the-body-element>body</a></code> 要素の終わりにあったものとして構文解析されます。 | ||
| 82 | apache | 1.12 | 従って、根要素の近辺の間隔文字は往復しません。 |
| 83 | apache | 1.80 | |
| 84 | |||
| 85 | #en | ||
| 86 | apache | 1.13 | It is suggested that newlines be inserted after the DOCTYPE, after any |
| 87 | comments that are before the root element, after the <code><a | ||
| 88 | wakaba | 1.44 | 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 | ||
| 90 | comments that are inside the <code><a href=#the-html-element>html</a></code> | ||
| 91 | apache | 1.80 | element but before the <code><a href=#the-head-element>head</a></code> element. |
| 92 | #ja | ||
| 93 | apache | 1.13 | DOCTYPE の後、 |
| 94 | 根要素の前の注釈がある場合はその後、 | ||
| 95 | <code><a | ||
| 96 | wakaba | 1.44 | href=#the-html-element>html</a></code> 要素の開始タグの後 |
| 97 | apache | 1.13 | (<a |
| 98 | wakaba | 1.44 | href=#syntax-tag-omission title=syntax-tag-omission>省略</a>しない場合)、 |
| 99 | <code><a href=#the-html-element>html</a></code> 要素中で | ||
| 100 | <code><a href=#the-head-element>head</a></code> 要素の前に注釈がある場合にはその後には、 | ||
| 101 | apache | 1.80 | 改行を挿入することをおすすめします。 |
| 102 | |||
| 103 | #en | ||
| 104 | apache | 1.14 | 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 | ||
| 106 | 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 | ||
| 108 | convenience, in this section this is just referred to as | ||
| 109 | apache | 1.80 | "case-insensitive". |
| 110 | #ja | ||
| 111 | apache | 1.14 | HTML 構文中の多くの文字列 (例えば要素や属性の名前) は大文字と小文字を区別しませんが、 |
| 112 | 区別しないのは範囲 | ||
| 113 | 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) | ||
| 115 | の文字についてのみです。便宜上、この節ではこれを単に「大文字・小文字を区別しない」と呼びます。 | ||
| 116 | apache | 1.80 | |
| 117 | |||
| 118 | #pattern | ||
| 119 | <span class=secno>* </span>The DOCTYPE | ||
| 120 | #ja | ||
| 121 | <span class=secno>$1 </span>DOCTYPE | ||
| 122 | |||
| 123 | #en | ||
| 124 | wakaba | 1.44 | A <dfn id=syntax-doctype title=syntax-doctype>DOCTYPE</dfn> is a mostly |
| 125 | apache | 1.80 | useless, but required, header. |
| 126 | #ja | ||