'''Hypertext Markup Language - 2.0'''
- Network Working Group
- Request for Comments: 1866
- Category: Standards Track
- T. Berners-Lee
- MIT/W3C
- D. Connolly
- November 1995
* Status of this Memo
> This document specifies an Internet standards track protocol for the
Internet community, and requests discussion and suggestions for
improvements. Please refer to the current edition of the "Internet
Official Protocol Standards" (STD 1) for the standardization state
and status of this protocol. Distribution of this memo is unlimited.
* Abstract
> The Hypertext Markup Language (HTML) is a simple markup language used
to create hypertext documents that are platform independent. HTML
documents are SGML documents with generic semantics that are
appropriate for representing information from a wide range of
domains. HTML markup can represent hypertext news, mail,
documentation, and hypermedia; menus of options; database query
results; simple structured documents with in-lined graphics; and
hypertext views of existing bodies of information.
ハイパーテキスト・マーク付け言語 (HTML) は、
ハイパーテキスト文書を作成するのに使用する、
環境過般の単純なマーク付け言語です。 HTML 文書は、
広範囲の種類の情報を表現するのに適切な一般的意味を持つ
SGML 文書です。 HTML マークはハイパーテキスト・ニュース,
メイル, 文書, ハイパー媒体 (選択肢のメニュー、
データベース照会結果、行内図形入り単純構造化文書、
既存情報本体のハイパーテキスト表示) を表現することができます。
> HTML has been in use by the World Wide Web (WWW) global information
initiative since 1990. This specification roughly corresponds to the
capabilities of HTML in common use prior to June 1994. HTML is an
application of ISO Standard 8879:1986 Information Processing Text and
Office Systems; Standard Generalized Markup Language (SGML).
HTML は 1990 年から World Wide Web (WWW)
大域情報活動で使用されています。この仕様書は大体
1994年6月までの HTML の広く使われている能力に対応します。
HTML は ISO 規格 8879:1986 情報処理文章および事務システム、
標準一般化マーク付け言語 (SGML) の応用です。
> The "text/html" Internet Media Type (RFC 1590) and MIME Content Type
(RFC 1521) is defined by this specification.
[CODE(MIME)[text/html]] インターネット媒体型 ([[RFC 1590]])
および MIME 内容型 ([[RFC 1521]]) はこの仕様書で定義しています。
* Table of Contents
>
[PRE[
1. Introduction ........................................... 2
1.1 Scope .................................................. 3
1.2 Conformance ............................................ 3
2. Terms .................................................. 6
3. HTML as an Application of SGML .........................10
3.1 SGML Documents .........................................10
3.2 HTML Lexical Syntax ................................... 12
3.3 HTML Public Text Identifiers .......................... 17
3.4 Example HTML Document ................................. 17
4. HTML as an Internet Media Type ........................ 18
4.1 text/html media type .................................. 18
4.2 HTML Document Representation .......................... 19
5. Document Structure .................................... 20
5.1 Document Element: HTML ................................ 21
5.2 Head: HEAD ............................................ 21
5.3 Body: BODY ............................................ 24
5.4 Headings: H1 ... H6 ................................... 24
5.5 Block Structuring Elements ............................ 25
5.6 List Elements ......................................... 28
5.7 Phrase Markup ......................................... 30
5.8 Line Break: BR ........................................ 34
5.9 Horizontal Rule: HR ................................... 34
5.10 Image: IMG ............................................ 34
6. Characters, Words, and Paragraphs ..................... 35
6.1 The HTML Document Character Set ....................... 36
7. Hyperlinks ............................................ 36
7.1 Accessing Resources ................................... 37
7.2 Activation of Hyperlinks .............................. 38
7.3 Simultaneous Presentation of Image Resources .......... 38
7.4 Fragment Identifiers .................................. 38
7.5 Queries and Indexes ................................... 39
7.6 Image Maps ............................................ 39
8. Forms ................................................. 40
8.1 Form Elements ......................................... 40
8.2 Form Submission ....................................... 45
9. HTML Public Text ...................................... 49
9.1 HTML DTD .............................................. 49
9.2 Strict HTML DTD ....................................... 61
9.3 Level 1 HTML DTD ...................................... 62
9.4 Strict Level 1 HTML DTD ............................... 63
9.5 SGML Declaration for HTML ............................. 64
9.6 Sample SGML Open Entity Catalog for HTML .............. 65
9.7 Character Entity Sets ................................. 66
10. Security Considerations ............................... 69
11. References ............................................ 69
12. Acknowledgments ....................................... 71
12.1 Authors' Addresses .................................... 71
13. The HTML Coded Character Set .......................... 72
14. Proposed Entities ..................................... 75
]PRE]
* 1. Introduction
> The HyperText Markup Language (HTML) is a simple data format used to
create hypertext documents that are portable from one platform to
another. HTML documents are SGML documents with generic semantics
that are appropriate for representing information from a wide range
of domains.
ハイパーテキスト・マーク付け言語 (HTML) は、
ハイパーテキスト文書を作成するのに使用する、
環境過般の単純なデータ書式です。 HTML 文書は、
広範囲の種類の情報を表現するのに適切な一般的意味を持つ
SGML 文書です。
> As HTML is an application of SGML, this specification assumes a
working knowledge of [SGML].
HTML は SGML の応用で、この仕様書は SGML
の知識があるものと想定しています。
** 1.1. Scope
> HTML has been in use by the World-Wide Web (WWW) global information
initiative since 1990. Previously, informal documentation on HTML has
been available from a number of sources on the Internet. This
specification brings together, clarifies, and formalizes a set of
features that roughly corresponds to the capabilities of HTML in
common use prior to June 1994. A number of new features to HTML are
being proposed and experimented in the Internet community.
HTML は1990年から World Wide Web (WWW)
大域情報活動で使われてきました。以前は、非公式な HTML
についての文書がインターネットの数々の情報源から入手可能でした。
この仕様書は1994年6月までの HTML の広く使われている能力にまま相当する機能の集合をまとめて明確化・公式化しています。数々の HTML
の新しい機能がインターネット社会で提案・実験されています。
> This document thus defines a HTML 2.0 (to distinguish it from the
previous informal specifications). Future (generally upwardly
compatible) versions of HTML with new features will be released with
higher version numbers.
この文書は (以前の非公式な仕様書と区別して) HTML 2.0 を定義します。
将来の (通常上位互換な) 版の新しい機能の入った HTML
はより大きな版番号で公開されることに成るでしょう。
> HTML is an application of ISO Standard 8879:1986, "Information
Processing Text and Office Systems; Standard Generalized Markup
Language" (SGML). The HTML Document Type Definition (DTD) is a formal
definition of the HTML syntax in terms of SGML.
HTML は ISO 規格 8879:1986 [CITE[情報処理及び事務システム ― 標準一般化マーク付け言語]]
(SGML) の応用です。 HTML 文書型定義 (DTD)
は HTML 構文を SGML の言葉で公式に定義します。
> This specification also defines HTML as an Internet Media
Type[IMEDIA] and MIME Content Type[MIME] called `text/html'. As such,
it defines the semantics of the HTML syntax and how that syntax
should be interpreted by user agents.
この仕様書は HTML を [CODE(MIME)[[[text/html]]]] というインターネット媒体型および
MIME 内容型としても定義します。
この仕様書は HTML 構文の意味と、
その構文をどう利用者エージェントが解釈するべきかを定義します。
** 1.2. Conformance
> This specification governs the syntax of HTML documents and aspects
of the behavior of HTML user agents.
この仕様書は HTML 文書の構文と HTML
利用者エージェントの振る舞いについて規定します。
*** 1.2.1. Documents
> A document is a conforming HTML document if:
文書は、次の条件を満たす時、適合 HTML 文書です。
>
- * It is a conforming SGML document, and it conforms to the
HTML DTD (see 9.1, "HTML DTD").
適合 SGML 文書であって、 HTML DTD に適合すること。
> NOTE - There are a number of syntactic idioms that
are not supported or are supported inconsistently in
some historical user agent implementations. These
idioms are identified in notes like this throughout
this specification.
備考: 古い利用者エージェント実装は対応していないか一貫せずに対応している数々の構文的語句があります。
そのような語句はこの仕様書ではこのように注記して示しています。
> * It conforms to the application conventions in this
specification. For example, the value of the HREF attribute
of the element must conform to the URI syntax.
この仕様書の応用表記法に適合すること。例えば、
[CODE(HTMLe)[a]] 要素の [CODE(HTMLa)[href]]
属性の値は URI 構文に適合しなければなりません。
>
- * Its document character set includes [ISO-8859-1] and
agrees with [ISO-10646]; that is, each code position listed
in 13, "The HTML Coded Character Set" is included, and each
code position in the document character set is mapped to the
same character as [ISO-10646] designates for that code
position.
文書文字集合が [[ISO/IEC 8859]]-1 を含み、
[[ISO/IEC 10646]] と合致すること。すなわち、
[CITE[HTML 符号化文字集合]]に挙げた各符号位置を含み、
文書文字集合の各符号位置が ISO/IEC 10646
がその符号位置に割当てた文字と同じ物に写像されること。
> NOTE - The document character set is somewhat
independent of the character encoding scheme used to
represent a document. For example, the `ISO-2022-JP'
character encoding scheme can be used for HTML
documents, since its repertoire is a subset of the
[ISO-10646] repertoire. The critical distinction is
that numeric character references agree with
[ISO-10646] regardless of how the document is
encoded.
備考: 文書文字集合は文書を表現するのに使用する文字符号化方式とは独立なものです。
例えば、 [CODE(charset)[ISO-2022-JP]] 文字符号化方式は ISO/IEC 10646
レパートリの部分集合ですから、 HTML 文書に使用することができます。
大きな違いは、文書がどう符号化されているかに関わらず数値文字参照が
ISO/IEC 10646 に従うことです。
[INS[
訳注: [CODE(charset)[ISO-2022-JP]] レパートリが ISO/IEC 10646
レパートリの部分集合であることは自明ではありません
([[JIS X 0208]]-1978 などが問題)。
]INS]
*** 1.2.2. Feature Test Entities
> The HTML DTD defines a standard HTML document type and several
variations, by way of feature test entities. Feature test entities
are declarations in the HTML DTD that control the inclusion or
exclusion of portions of the DTD.
HTML DTD は、機能試験実体を使って、標準 HTML 文書型と幾つかの変種を定義します。
機能試験実体は、 HTML DTD で宣言され、 DTD
の部分の取込みや除外を制御するために使用します。
>
:HTML.Recommended:
Certain features of the language are necessary for
compatibility with widespread usage, but they may
compromise the structural integrity of a document. This
feature test entity selects a more prescriptive document
type definition that eliminates those features. It is
set to `IGNORE' by default.
HTML のある機能は広く用いられている方法との互換のために必要ですが、
文書の構造的整合性を曲げてしまうかもしれません。
この機能試験実体は、そのような機能を除去したより規範的な文書型定義を選択します。
既定では [CODE(SGML)[IGNORE]] に設定されています。
> For example, in order to preserve the structure of a
document, an editing user agent may translate HTML
documents to the recommended subset, or it may require
that the documents be in the recommended subset for import.
例えば、文書の構造を保持するために、
編集利用者エージェントは HTML 文書を推奨部分集合に翻訳して構いませんし、
輸入するためには文書が推奨部分集合によっていることを要求しても構いません。
>
:HTML.Deprecated:
Certain features of the language are necessary for
compatibility with earlier versions of the
specification, but they tend to be used and implemented
inconsistently, and their use is deprecated. This
feature test entity enables a document type definition
that allows these features. It is set to `INCLUDE' by default.
HTML のある機能は以前の版の仕様との互換のために必要ですが、
一貫しない形で使用・実装される傾向にあり、
その使用は非推奨です。この機能試験実体はそのような機能を認める文書型定義を有効化します。
既定では [CODE(SGML)[INCLUDE]] に設定されています。
> Documents generated by translation software or editing
software should not contain deprecated idioms.
翻訳ソフトウェアや編集ソフトウェアが生成した文書は非推奨の語彙を含むべきではありません。
*** 1.2.3. User Agents
> An HTML user agent conforms to this specification if:
HTML 利用者エージェントは、次のとき、この仕様書に適合します。
>
- * It parses the characters of an HTML document into data
characters and markup according to [SGML].
- HTML 文書の文字を、 SGML に従って[[データ文字]]および[[マーク]]に構文解析する。
> NOTE - In the interest of robustness and
extensibility, there are a number of widely deployed
conventions for handling non-conforming documents.
See 4.2.1, "Undeclared Markup Error Handling" for details.
備考: 頑強性と拡張可能性の点から、種々の広く採用されている非適合文書の取扱い方法があります。
詳しくは 4.2.1 『未宣言マーク誤りの取扱い』を御覧下さい。
>
- * It supports the `ISO-8859-1' character encoding scheme and
processes each character in the ISO Latin Alphabet No. 1 as
specified in 6.1, "The HTML Document Character Set".
[CODE(charset)[[[ISO-8859-1]]]] 文字符号化方式に対応し、
6.1 『HTML 文書文字集合』に規定するとおり、
ISO Latin Alphabet No. 1 の各文字を処理する。
> NOTE - To support non-western writing systems, HTML
user agents are encouraged to support
`ISO-10646-UCS-2' or similar character encoding
schemes and as much of the character repertoire of
[ISO-10646] as is practical.
備考: 西洋以外の書字体系に対応するため、 HTML
利用者エージェントは [CODE(charset)[[[ISO-10646-UCS-2]]]]
や同様の文字符号化方式と [[ISO/IEC 10646]]
のできるだけ多くの[[文字レパートリ]]に対応することを推奨します。
>
- * It behaves identically for documents whose parsed token
sequences are identical.
- 解析字句列が同一である文書に対して同じ様に振る舞う。
> For example, comments and the whitespace in tags disappear
during tokenization, and hence they do not influence the
behavior of conforming user agents.
例えば、注釈やタグ中の空白は字句化の過程で消失しますから、
適合利用者エージェントの振舞いには影響しません。
>
- * It allows the user to traverse (or at least attempt to
traverse, resources permitting) all hyperlinks from
elements in an HTML document.
利用者が HTML 文書中の [CODE(HTML)[<[CODE(HTMLe)[[[a]]]]>]]
要素からのすべての[[ハイパーリンク]]を[[探索]]する
(あるいは少なくても探索することを試みる) のを認める。
> An HTML user agent is a level 2 user agent if, additionally:
HTML 利用者エージェントは、加えて次のとおりであれば、
水準 2 利用者エージェントです。
>
- * It allows the user to express all form field values
specified in an HTML document and to (attempt to) submit the
values as requests to information services.
- HTML 文書中に指定されたすべてのフォーム欄値を表現することおよびその値を情報サービスに要求として提出する
(のを試みる) ことを利用者に認める。
* 2. Terms
>
:absolute URI:
a URI in absolute form; for example, as per [URL]
:絶対 URI:絶対形での URI。例えば、 [[RFC 1738]] による。
>
:anchor:
one of two ends of a hyperlink; typically, a phrase
marked as an element.
:アンカー:[[ハイパーリンク]]の2つの端点の1つ。
典型的には、 [CODE(HTMLe)[[[a]]]] 要素でマークされる語句。
>
:base URI:
an absolute URI used in combination with a relative URI
to determine another absolute URI.
相対 URI と合わせて絶対 URI を決定するために使われる別の絶対 URI。
>
:character:
An atom of information, for example a letter or a digit.
Graphic characters have associated glyphs, whereas
control characters have associated processing semantics.
:文字:情報の原子で、例えば文字や数字。
[[図形文字]]は関連付けられた[[グリフ]]を持ち、
[[制御文字]]は関連付けられた処理意味を持つ。
[PRE[
character encoding
scheme
A function whose domain is the set of sequences of
octets, and whose range is the set of sequences of
characters from a character repertoire; that is, a
sequence of octets and a character encoding scheme
determines a sequence of characters.
]PRE]
:文字符号化方式:定義域がオクテットの列の集合であり、
値域が文字レパートリ内の文字の列の集合である関数。
すなわち、オクテットの列と文字符号化方式が文字の列を決定する。
[PRE[
character repertoire
A finite set of characters; e.g. the range of a coded
character set.
]PRE]
:文字レパートリ:
文字の有限集合。例えば、符号化文字集合の値域。
[PRE[
code position
An integer. A coded character set and a code position
from its domain determine a character.
]PRE]
:符号位置:
整数。符号化文字集合と定義域内の符号位置が文字を決定する。
[PRE[
coded character set
A function whose domain is a subset of the integers and
whose range is a character repertoire. That is, for some
set of integers (usually of the form {0, 1, 2, ..., N}
), a coded character set and an integer in that set
determine a character. Conversely, a character and a
coded character set determine the character's code
position (or, in rare cases, a few code positions).
]PRE]
:符号化文字集合:
定義域が整数の部分集合であり、値域が文字レパートリである関数。
すなわち、ある整数の集合 (通常は [CODE(math)[{0, 1, 2, ..., [VAR[N]]}]]
の形) について、符号化文字集合とその集合中の整数が文字を決定する。
逆に、文字と符号化文字集合が文字の符号位置
(稀な場合には幾つかの符号位置群) を決定する。
[PRE[
conforming HTML user
agent
A user agent that conforms to this specification in its
processing of the Internet Media Type `text/html'.
]PRE]
:適合 HTML 利用者エージェント:
[[インターネット媒体型]] [CODE(MIME)[text/html]]
の処理においてこの仕様書に適合する[[利用者エージェント]]。
[PRE[
data character
Characters other than markup, which make up the content
of elements.
]PRE]
:データ文字:
[[マーク]]以外の[[文字]]であって、
[[要素]]の[[内容]]を構成する。
[PRE[
document character set
a coded character set whose range includes all
characters used in a document. Every SGML document has
exactly one document character set. Numeric character
references are resolved via the document character set.
]PRE]
:文書文字集合:
値域が[[文書]]中で使用される全ての[[文字]]を含む[[符号化文字集合]]。
各 [[SGML文書]]はちょうど一つの文書文字集合を持つ。
[[数値文字参照]]は文書文字集合について解決する。
[PRE[
DTD
document type definition. Rules that apply SGML to the
markup of documents of a particular type, including a
set of element and entity declarations. [SGML]
]PRE]
:DTD:
[[文書型定義]]。特定の型の[[文書]]のマークに適用される規則で、
[[要素宣言]]や[[実体宣言]]の集合を含む。
[PRE[
element
A component of the hierarchical structure defined by a
document type definition; it is identified in a document
instance by descriptive markup, usually a start-tag and
end-tag. [SGML]
]PRE]
:要素:[[文書型定義]]で定義される階層構造の構成部品。
[[記述的マーク]] (通常は[[開始タグ]]と[[終了タグ]])
により[[文書実現値]]中で識別される。
[PRE[
end-tag
Descriptive markup that identifies the end of an
element. [SGML]
]PRE]
:終了タグ:[[要素]]の終了を識別する[[記述的マーク]]。
[PRE[
entity
data with an associated notation or interpretation; for
example, a sequence of octets associated with an
Internet Media Type. [SGML]
]PRE]
:実体:[[データ]]およびそれに[[関連付けられた記法]]または解釈。
例えば、[[インターネット媒体型]]に関連付けられた[[オクテット列]]。
[PRE[
fragment identifier
the portion of an HREF attribute value following the `#'
character which modifies the presentation of the
destination of a hyperlink.
]PRE]
:素片識別子:[[ハイパーリンク]]の[[終点]]の表現を修飾する、
[CODE(HTMLa)[[[href]]]] [[属性値]]の [CODE(char)[#]]
文字に続く部分。
[PRE[
form data set
a sequence of name/value pairs; the names are given by
an HTML document and the values are given by a user.
]PRE]
:フォー・ムデータ集合:
[[名前]]と[[値]]の[[組]]の[[列]]。名前は HTML]]
[[要素]]により与えられ、値は[[利用者]]により与えられる。
[PRE[
HTML document
An SGML document conforming to this document type
definition.
]PRE]
:HTML 文書:
この[[文書型定義]]に[[適合]]する [[SGML文書]]。
[PRE[
hyperlink
a relationship between two anchors, called the head and
the tail. The link goes from the tail to the head. The
head and tail are also known as destination and source,
respectively.
]PRE]
:ハイパーリンク:[[頭]]および[[尾]]とよばれる二つの[[アンカー]]の間の関係。
[[リンク]]は尾から頭へと向かう。
頭と尾はそれぞれ[[終点]]および[[始点]]とも呼ぶ。
[PRE[
markup
Syntactically delimited characters added to the data of
a document to represent its structure. There are four
different kinds of markup: descriptive markup (tags),
references, markup declarations, and processing
instructions. [SGML]
]PRE]
:マーク(付け):[[文書]]の[[データ]]に、その構造を表現するために書き加える構造的に区切られた[[文字]]群。
マークには[[記述的マーク]] ([[タグ]]), [[参照]],
[[マーク宣言]], [[処理指令]]の4種類がある。
[PRE[
may
A document or user interface is conforming whether this
statement applies or not.
]PRE]
:[VAR[〜]]してよい、構わない:
この文を適用するにせよ、しないにせよ、[[文書]]または[[利用者界面]]は[[適合]]している。
[PRE[
media type
an Internet Media Type, as per [IMEDIA].
]PRE]
:媒体型:[[RFC 1521]] による[[インターネット媒体型]]。
[PRE[
message entity
a head and body. The head is a collection of name/value
fields, and the body is a sequence of octets. The head
defines the content type and content transfer encoding
of the body. [MIME]
]PRE]
:メッセージ実体:
[[頭部]]および[[本体]]。頭部は名前・値欄の集成であり、
本体は[[オクテット]]の列である。頭部は本体の[[内容型]]および[[内容転送符号化]]を定義する。
[PRE[
minimally conforming
HTML user agent
A user agent that conforms to this specification except
for form processing. It may only process level 1 HTML
documents.
]PRE]
:最小適合 HTML 利用者エージェント:
[[フォーム]]処理を除いてこの仕様書に適合する[[利用者エージェント]]。
水準 1 [[HTML文書]]のみを処理しても構わない。
[PRE[
must
Documents or user agents in conflict with this statement
are not conforming.
]PRE]
:[VAR[〜]]しなければならない:
この文に衝突する[[文書]]や[[利用者エージェント]]は適合していない。
[PRE[
numeric character
reference
markup that refers to a character by its code position
in the document character set.
]PRE]
:数値文字参照:[[文書文字集合]]中の[[符号位置]]によって[[文字]]を参照する[[マーク]]。
[PRE[
SGML document
A sequence of characters organized physically as a set
of entities and logically into a hierarchy of elements.
An SGML document consists of data characters and markup;
the markup describes the structure of the information
and an instance of that structure. [SGML]
]PRE]
:SGML 文書:物理的には[[実体]]の集合として、
論理的には[[要素]]の階層として組織化された[[文字]]の列。
SGML 文書は[[データ文字]]と[[マーク]]で構成される。
マークは情報の構造とその構造の[[実現値]]を記述する。
[PRE[
shall
If a document or user agent conflicts with this
statement, it does not conform to this specification.
]PRE]
:[VAR[〜]]しなければならない:
[[文書]]または[[利用者エージェント]]がこの文と衝突するなら、
この仕様書に適合しない。
[PRE[
should
If a document or user agent conflicts with this
statement, undesirable results may occur in practice
even though it conforms to this specification.
]PRE]
:[VAR[〜]]するべきだ:
[[文書]]または[[利用者エージェント]]がこの文と衝突するなら、
それはこの仕様書には適合するものの、実際には望ましくない結果を引き起こすかもしれない。
[PRE[
start-tag
Descriptive markup that identifies the start of an
element and specifies its generic identifier and
attributes. [SGML]
]PRE]
:開始タグ:
[[要素]]の開始とその[[共通識別子]]および[[属性]]を指定する[[記述的マーク]]。
[PRE[
syntax-reference
character set
A coded character set whose range includes all
characters used for markup; e.g. name characters and
delimiter characters.
]PRE]
:構文参照文字集合:
値域が[[マーク]]に使用するすべての[[文字]]、
例えば[[名前文字]]や[[区切子文字]]を含む[[符号化文字集合]]。
[PRE[
tag
Markup that delimits an element. A tag includes a name
which refers to an element declaration in the DTD, and
may include attributes. [SGML]
]PRE]
:タグ:[[要素]]を区切る[[マーク]]。タグは [[DTD]]
中の[[要素宣言]]を参照する[[名前]]を含み、
[[属性]]を含んでもよい。
[PRE[
text entity
A finite sequence of characters. A text entity typically
takes the form of a sequence of octets with some
associated character encoding scheme, transmitted over
the network or stored in a file. [SGML]
]PRE]
:文実体:文字の有限の列。文実体は典型的には何らかの関連付けられた[[文字符号化方式]]の[[オクテット]]の列の形を取り、
[[ネットワーク]]上を転送されたり[[ファイル]]に蓄積されたりする。
[PRE[
typical
Typical processing is described for many elements. This
is not a mandatory part of the specification but is
given as guidance for designers and to help explain the
uses for which the elements were intended.
]PRE]
:典型的:典型的処理を多くの[[要素]]について記述する。
これは仕様書の強制の部分ではないが、
設計者への指針および要素の意図する使用法を説明するのを助けるために与える。
[PRE[
URI
A Uniform Resource Identifier is a formatted string that
serves as an identifier for a resource, typically on the
Internet. URIs are used in HTML to identify the anchors
of hyperlinks. URIs in common practice include Uniform
Resource Locators (URLs)[URL] and Relative URLs
[RELURL].
]PRE]
:URI:統一資源識別子は、典型的には[[インターネット]]上にある[[資源]]の識別子として供給される書式付けされた文字列である。
URI は、 [[HTML]] においては[[ハイパーリンク]]の[[アンカー]]を識別するために使用する。
URI は一般的な習慣として統一資源位置子 ([[URL]]) および[[相対URL]]
を含む。
[PRE[
user agent
A component of a distributed system that presents an
interface and processes requests on behalf of a user;
for example, a www browser or a mail user agent.
]PRE]
:利用者エージェント:
[[界面]]を提供し、[[利用者]]に代わって[[要求]]を処理する[[分散システム]]の構成部品。
例えば、 [[WWWブラウザ]]や[[メイル利用者エージェント]]。
[PRE[
WWW
The World-Wide Web is a hypertext-based, distributed
information system created by researchers at CERN in
Switzerland. Some text. *wow*
|
\-"Some text. "
|
\-EM
| |
| \-
| |
| \-"*wow*"
| |
| \-
|
\-This is a Heading
]]
> Some elements only have a start-tag without an end-tag. For example,
to create a line break, use the `
' tag. Additionally, the end
tags of some other elements, such as Paragraph (`
', `', and `' are equivalent, whereas `&' is different from `&'. 名前は、文字 (ltter) とそれに続く文字、数字、句点またはハイフンで構成します。 名前の長さは HTML の SGML 宣言の [CODE(SGML)[[[NAMELEN]]]] 引数により 72 文字に制限されています。要素や属性の名前は大文字・小文字を区別しませんが、 実体名は区別します。例えば、 [SAMP(HTML)[]], [SAMP(HTML)[]], [SAMP(HTML)[]] は同等ですが、 [SAMP(HTML)[&]] は [SAMP(HTML)[&]] とは異なります。 > In a start-tag, the element name must immediately follow the tag open delimiter `<'. 開始タグでは、要素名はタグ開始区切子 [CODE[<]] のすぐ後ろに続かなければなりません。 *** 3.2.4. Attributes > In a start-tag, white space and attributes are allowed between the element name and the closing delimiter. An attribute specification typically consists of an attribute name, an equal sign, and a value, though some attribute specifications may be just a name token. White space is allowed around the equal sign. 開始タグでは、要素名と閉じ区切子の間に空白と属性群が認められます。 属性指定は典型的に属性名、等号、値から成りますが、 いくつかの属性指定は単に名前字句だけでも構いません。 等号の回りに空白が認められます。 > The value of the attribute may be either: 属性の値は、次のうちのいずれかです。 > - * A string literal, delimited by single quotes or double quotes and not containing any occurrences of the delimiting character. 文字列表記。一重引用符または二重引用符で区切り、 区切文字を含まない。 > NOTE - Some historical implementations consider any occurrence of the `>' character to signal the end of a tag. For compatibility with such implementations, when `>' appears in an attribute value, it should be represented with a numeric character reference. For example, `' should be written `' or `'. 備考: いくつかの歴史的な実装は [CODE[>]] 文字があるとタグの終了と考えます。 そのような実装との互換性のため、 [CODE[>]] が属性値中に出現するときは、 数値文字参照で表現するべきです。例えば、 [SAMP(HTML)[]] は [SAMP(HTML)[]] または [SAMP(HTML)[]] とするべきです。 > - * A name token (a sequence of letters, digits, periods, or hyphens). Name tokens are not case sensitive. 名前字句 (文字、数字、句点またはハイフンの列)。 名前字句は大文字・小文字を区別しません。 > NOTE - Some historical implementations allow any character except space or `>' in a name token. 備考: いくつかの歴史的実装は生枝路駆虫に空白や [CODE[>]] を除く任意の文字を認めます。 > In this example, is the element name, src is the attribute name, and `http://host/dir/file.gif' is the attribute value: この例では、 [SAMP(HTMLe)[img]] は要素名で、 [SAMP(HTMLa)[src]] は属性名で、 [SAMP[http://host/dir/file.gif]] は属性値です。 > - [SAMP(HTML)[]] > A useful technique for computing an attribute value literal for a given string is to replace each quote and white space character by an entity reference or numeric character reference as follows: ある文字列の属性値表記を計算する有用な技法は、 各引用符と空白文字を実体参照や数値文字参照で次のとおり置換することです。 > [PRE[ ENTITY NUMERIC CHARACTER REFERENCE CHAR REF CHARACTER DESCRIPTION --------- ---------- ----------- --------------------- HT Tab LF Line Feed CR Carriage Return SP Space " " " Quotation mark & & & Ampersand ]PRE] > For example: たとえば、 > [SAMP(HTML)[]] > The `NAMELEN' parameter in the SGML declaration (9.5, "SGML Declaration for HTML") limits the length of an attribute value to 1024 characters. SGML 宣言の [CODE(SGML)[[[NAMELEN]]]] 引数は属性値の長さを 1024 文字に制限しています。 > Attributes such as ISMAP and COMPACT may be written using a minimized syntax (see 7.9.1.2 "Omitted Attribute Name" in [SGML]). The markup: [CODE(HTMLa)[[[ismap]]]] や [CODE(HTMLa)[[[compatct]]]]] のような属性は最小化構文を使って書いて構いません。 マーク - [SAMP(HTML)[]] > can be written using a minimized syntax: は最小化構文を使って - [SAMP(HTML)[
]] と書くことができます。 > NOTE - Some historical implementations only understand the minimized syntax. 備考: いくつかの歴史的実装は最小化構文のみを理解します。 *** 3.2.5. Comments > To include comments in an HTML document, use a comment declaration. A comment declaration consists of `'. Each comment starts with `--' and includes all text up to and including the next occurrence of `--'. In a comment declaration, white space is allowed after each comment, but not before the first comment. The entire comment declaration is ignored. 注釈を HTML 文書に含めるためには、注釈宣言を使用します。 注釈宣言は [CODE[]] から成ります。注釈は [CODE[--]] ではじまり、次に [CODE[--]] が現れるまでのすべての文を含みます。 注釈宣言では、空白が各注釈の後に認められますが、 最初の注釈の前には認められません。注釈宣言全体が無視されます。 > NOTE - Some historical HTML implementations incorrectly consider any `>' character to be the termination of a comment. 備考: いくつかの歴史的 HTML 実装は誤って任意の [CODE[>]] 文字を注釈の終端と考えます。 > For example: [PRE(HTML)[
HTML Comment Example ]PRE] ** 3.3. HTML Public Text Identifiers > To identify information as an HTML document conforming to this specification, each document must start with one of the following document type declarations. 情報をこの仕様書に適合する HTML 文書と識別するために、 各文書は次の文書型宣言のいずれかで始めなければなりません。 > [CODE[]] > This document type declaration refers to the HTML DTD in 9.1, "HTML DTD". この文書型宣言は 9.1 の HTML DTD を参照します。 > NOTE - If the body of a `text/html' message entity does not begin with a document type declaration, an HTML user agent should infer the above document type declaration. 備考: [CODE(MIME)[[[text/html]]]] メッセージ実体の本体が文書型宣言で始まらなければ、 HTML 利用者エージェントはこの文書型宣言と推論するべきです。 > [CODE[]] > This document type declaration also refers to the HTML DTD which appears in 9.1, "HTML DTD". この文書型宣言も 9.1 にある HTML DTD を参照します。 > [CODE[]] > This document type declaration refers to the level 1 HTML DTD in 9.3, "Level 1 HTML DTD". Form elements must not occur in level 1 documents. この文書型宣言は 9.3 にある水準 1 HTML DTD を参照します。 フォーム要素群は水準 1 文書に出現してはなりません。 > [CODE[]] > [CODE{]] > These two document type declarations refer to the HTML DTD in 9.2, "Strict HTML DTD" and 9.4, "Strict Level 1 HTML DTD". They refer to the more structurally rigid definition of HTML. これらの二つの文書型宣言は 9.2 と 9.4 にある HTML DTD を参照します。これらはより構造的に厳密な HTML の定義を参照します。 > HTML user agents may support other document types. In particular, they may support other formal public identifiers, or other document types altogether. They may support an internal declaration subset with supplemental entity, element, and other markup declarations. HTML 利用者エージェントは他の文書型にも対応して構いません。 特に、他の[[公式公開識別子]]や他の文書型にあわせて対応して構いません。 HTML 利用者エージェントは補遺実体・要素・他のマーク宣言の含まれた内部宣言部分集合に対応して構いません。 [INS[ 訳注: HTML UA は SGML に従って構文解析しなければならないのだから、 内部部分集合には対応しなければならないはずだが。 構文解析はできなければならないが、それを適用する必要はないということか。 ]INS] ** 3.4. Example HTML Document > [PRE[
Structural Example First Header
This is a paragraph in the example HTML file. Keep in mind that the title does not appear in the document text, but that the header (defined by H1) does.
- First item in an ordered list.
- Second item in an ordered list.
- Note that lists can be nested;
- Whitespace may be used to assist in reading the HTML source.
- Third item in an ordered list.
This is an additional paragraph. Technically, end tags are not required for paragraphs, although they are allowed. You can include character highlighting in a paragraph. This sentence of the paragraph is emphasized. Note that the </P> end tag has been omitted.
Be sure to read these bold instructions. ]PRE] [PRE[
構造的な例 最初の見出し
これは例の HTML ファイル中の段落です。 題は文書文中に出現しないものの、見出し ([CODE(HTML)[h1]] により定義) は出現することに注意してください。
- 順序付きリスとの最初の項目
- 順序付きリストの二番目の項目
- リストは入れ子にできることに注意
- HTML 原文を読む助けに 空白を入れて構いません
- 順序付きリストの三番目の項目
これは追加の段落です。典型的に、終了タグは段落には必須ではありません。 とはいうものの認められてはいます。段落中に文字強調を含めることができます。 段落のこの文は強調します。 </P> 終了タグが省略されていることに注意されたし。
太字の指示を読むように。 ]PRE] * 4. HTML as an Internet Media Type > An HTML user agent allows users to interact with resources which have HTML representations. At a minimum, it must allow users to examine and navigate the content of HTML level 1 documents. HTML user agents should be able to preserve all formatting distinctions represented in an HTML document, and be able to simultaneously present resources referred to by IMG elements (they may ignore some formatting distinctions or IMG resources at the request of the user). Level 2 HTML user agents should support form entry and submission. [[HTML利用者エージェント]]を使うと[[利用者]]は HTML [[表現]]を持つ[[資源]]と対話できます。少なくても、 HTML 利用者エージェントは利用者が HTML [[水準]] 1 文書の内容を検査して誘導できなければなりません。 HTML 利用者エージェントは HTML 文書で表現されているすべての書式付け上の区別を保存することができるべきであり、 [CODE(HTMLe)[[[img]]]] 要素で参照された資源を同時に表示できるべきです (HTML 利用者エージェントは利用者の要求により書式付け上の区別や [CODE(HTMLe)[img]] 資源を無視しても構いません)。水準 2 HTML 利用者エージェントはフォーム項目とフォーム提出に対応するべきです。 ** 4.1. text/html media type > This specification defines the Internet Media Type [IMEDIA] (formerly referred to as the Content Type [MIME]) called `text/html'. The following is to be registered with [IANA]. この仕様書は [DFN[[CODE(MIME)[[[text/html]]]]]] というインターネット媒体型 (従来内容型と呼ばれてきたもの。) を定義します。次の通り IANA に登録します。 > :Media Type name: text :Media subtype name: html :Required parameters: none :Optional parameters: level, charset :Encoding considerations: any encoding is allowed :Security considerations: see 10, "Security Considerations" > The optional parameters are defined as follows: 省略可能な引数は次の通り定義します。 > :Level: The level parameter specifies the feature set used in the document. The level is an integer number, implying that any features of same or lower level may be present in the document. Level 1 is all features defined in this specification except those that require the