-
Notifications
You must be signed in to change notification settings - Fork 4
/
57.txt
5363 lines (4324 loc) · 219 KB
/
57.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[3] [DFN[[[RFC 1866]]]] は、 [[HTML 2.0]] を規定した [[RFC]] でした。
[FIG(important)[
[1] この RFC は [[RFC 2854]] により廃止されました。
[5] 現在 [[HTML]] は [[HTML Standard]] により規定されています。
]FIG]
[REFS[
- [2]
[CITE@en[RFC 1866 - Hypertext Markup Language - 2.0]] ([CODE[2007-01-14 13:27:28 +09:00]] 版) <http://tools.ietf.org/html/rfc1866>
]REFS]
'''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 <A> 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 <A>
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 <A> 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. <URL:http://www.w3.org/>
]PRE]
:WWW:世界規模網は[[ハイパーテキスト]]を基にした分散情報システムで、
[[スイス]]の [[CERN]] の研究者により作られた。
* 3. HTML as an Application of SGML
> HTML is an application of ISO 8879:1986 -- Standard Generalized
Markup Language (SGML). SGML is a system for defining structured
document types and markup languages to represent instances of those
document types[SGML]. The public text -- DTD and SGML declaration --
of the HTML document type definition are provided in 9, "HTML Public Text".
HTML は [[ISO8879]]:1986 —標準一般化マーク付け言語 ([[SGML]])
の[[応用]]です。 SGML は構造化[[文書型]]の定義とその文書型の[[実現値]]を表現するための[[マーク付け言語]]のシステムです。
HTML [[文書型定義]]の[[公開文]] ([[DTD]] と [[SGML宣言]])
は 9. HTML 公開文で提供しています。
> The term "HTML" refers to both the document type defined here and the
markup language for representing instances of this document type.
用語「HTML」は、ここで定義する文書型およびこの文書型の実現値を表現するマーク付け言語の両方を指します。
** 3.1. SGML Documents
> An HTML document is an SGML document; that is, a sequence of
characters organized physically into a set of entities, and logically
as a hierarchy of elements.
[[HTML文書]]は [[SGML文書]]です。すなわち、
物理的には[[実体]]の集合として、論理的には[[要素]]の階層として組織化された[[文字]]の列です。
> In the SGML specification, the first production of the SGML syntax
grammar separates an SGML document into three parts: an SGML
declaration, a prologue, and an instance. For the purposes of this
specification, the prologue is a DTD. This DTD describes another
grammar: the start symbol is given in the doctype declaration, the
terminals are data characters and tags, and the productions are
determined by the element declarations. The instance must conform to
the DTD, that is, it must be in the language defined by this grammar.
SGML 仕様書では、 SGML 構文文法の最初の生成規則で
SGML 文書を3つの部分 — [[SGML宣言]], [[前書き]], 実現値に分離しています。
この仕様書の目的では、前書きは [[DTD]] です。
この DTD は他の文法を記述します。開始記号は[[文書型宣言]]中に与えられ、
終端は[[データ文字]]と[[タグ]]であり、
生成規則は[[要素宣言]]で決定されます。
実現値は DTD に適合しなければなりません。すなわち、
この文法で定義された言語で書かれていなければなりません。
> The SGML declaration determines the lexicon of the grammar. It
specifies the document character set, which determines a character
repertoire that contains all characters that occur in all text
entities in the document, and the code positions associated with
those characters.
SGML 宣言は文法の字句を決定します。
SGML 宣言は[[文書文字集合]]を指定し、文書文字集合は[[文書]]中のすべての[[文実体]]に出現するすべての[[文字]]を含む[[文字レパートリ]]とそららの文字に関連付けられた[[符号位置]]を決定します。
> The SGML declaration also specifies the syntax-reference character
set of the document, and a few other parameters that bind the
abstract syntax of SGML to a concrete syntax. This concrete syntax
determines how the sequence of characters of the document is mapped
to a sequence of terminals in the grammar of the prologue.
SGML 宣言は文書の[[構文参照文字集合]]と、
SGML の[[抽象構文]]を[[具象構文]]に束縛する数個の他の[[引数]]も指定します。
この具象構文が文書の文字の列をどう前書きの文法中の終端の列に写像するかを決定します。
> For example, consider the following document:
例えば、次の文書を考えてみましょう。
>
[PRE(HTML)[
<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
<title>Parsing Example</title>
<p>Some text. <em>*wow*</em></p>
]PRE]
> An HTML user agent should use the SGML declaration that is given in
9.5, "SGML Declaration for HTML". According to its document character
set, `*' refers to an asterisk character, `*'.
HTML 利用者エージェントは、 9.5 『HTML 用 SGML 宣言』
にある SGML 宣言を使用するべきです。その[[文書文字集合]]によれば、
[SAMP(SGML)[*]] は星印文字 [CODE(char)[*]] を指します。
> The instance above is regarded as the following sequence of terminals:
= 1. start-tag: TITLE
= 2. data characters: "Parsing Example"
= 3. end-tag: TITLE
= 4. start-tag: P
= 5. data characters "Some text."
= 6. start-tag: EM
= 7. data characters: "*wow*"
= 8. end-tag: EM
= 9. end-tag: P
前述の実現値は次の終端の列と考えます。
= 開始タグ: [CODE(HTMLe)[title]]
= データ文字群: [Q[Parsing Example]]
= 終了タグ: [CODE(HTMLe)[title]]
= 開始タグ: [CODE(HTMLe)[p]]
= データ文字群: [Q[Some text.]]
= 開始タグ: [CODE(HTMLe)[em]]
= データ文字群: [Q[*wow*]]
= 終了タグ: [CODE(HTMLe)[em]]
= 終了タグ: [CODE(HTMLe)[p]]
> The start symbol of the DTD grammar is HTML, and the productions are
given in the public text identified by `-//IETF//DTD HTML 2.0//EN'
(9.1, "HTML DTD"). The terminals above parse as:
DTD 文法の開始記号は [CODE(HTMLe)[html]] で、
生成規則群は [CODE[-//IETF//DTD HTML 2.0//EN]]
で識別される公開文で与えられます。
先の終端群は、次のように解析します。
>
[PRE[
HTML
|
\-HEAD
| |
| \-TITLE
| |
| \-<TITLE>
| |
| \-"Parsing Example"
| |
| \-</TITLE>
|
\-BODY
|
\-P
|
\-<P>
|
\-"Some text. "
|
\-EM
| |
| \-<EM>
| |
| \-"*wow*"
| |
| \-</EM>
|
\-</P>
]PRE]
> Some of the elements are delimited explicitly by tags, while the
boundaries of others are inferred. The <HTML> element contains a
<HEAD> element and a <BODY> element. The <HEAD> contains <TITLE>,
which is explicitly delimited by start- and end-tags.
いくつかの要素はタグにより陽に区切られており、
他の境界は推論しています。 [CODE(HTMLe)[html]] 要素は
[CODE(HTMLe)[head]] 要素と [CODE(HTMLe)[body]] 要素を含みます。
[CODE(HTMLe)[head]] は開始タグと終了タグで陽に区切られている
[CODE(HTMLe)[title]] を含みます。
** 3.2. HTML Lexical Syntax
> SGML specifies an abstract syntax and a reference concrete syntax.
Aside from certain quantities and capacities (e.g. the limit on the
length of a name), all HTML documents use the reference concrete
syntax. In particular, all markup characters are in the repertoire of
[ISO-646]. Data characters are drawn from the document character set
(see 6, "Characters, Words, and Paragraphs").
SGML は[[抽象構文]]と[[具象構文]]を規定しています。
[[量]]や[[容量]] (例えば名前の長さの制限) は別として、すべての
HTML 文書は[[規格参照具象構文]]を使います。
特に、すべての[[マーク文字]]は [[ISO/IEC 646]] のレパートリ中にあります。
データ文字は文書文字集合からえらびます。
> A complete discussion of SGML parsing, e.g. the mapping of a sequence
of characters to a sequence of tags and data, is left to the SGML
standard[SGML]. This section is only a summary.
SGML の構文解析、例えば文字の列からタグおよびデータの列への写像についての完全な議論は
SGML 規格によります。この節は要約だけです。
*** 3.2.1. Data Characters
> Any sequence of characters that do not constitute markup (see 9.6
"Delimiter Recognition" of [SGML]) are mapped directly to strings of
data characters. Some markup also maps to data character strings.
Numeric character references map to single-character strings, via the
document character set. Each reference to one of the general entities
defined in the HTML DTD maps to a single-character string.
マークを構成しない任意の文字の列は直接データ文字の列に写像します。
いくつかのマークもデータ文字列に写像します。
数値文字参照は文書文字集合によりひとつの文字に写像します。
HTML DTD で定義された一般実体のいずれかへの参照はひとつの文字に写像します。
> For example,
たとえば、