|
|
|
| 1 |
#pattern |
#pattern |
| 2 |
<span class=secno>* </span>The HTML syntax |
<span class=secno>* </span>The HTML syntax |
| 3 |
#ja |
#ja |
| 606 |
#pattern |
#pattern |
| 607 |
<span class=secno>* </span>Attributes |
<span class=secno>* </span>Attributes |
| 608 |
#ja |
#ja |
| 609 |
<span class=secno>$1 </span>属性 |
<span class=secno>$1 </span>属性 |
| 610 |
|
|
| 611 |
#en |
#en |
| 612 |
<dfn id=syntax-start-tags title=syntax-start-tags>Start tags</dfn> must have the |
<dfn id=syntax-start-tags title=syntax-start-tags>Start tags</dfn> must have the |
| 613 |
following format: |
following format: |
| 614 |
#ja |
#ja |
| 615 |
<dfn id=syntax-start-tags title=syntax-start-tags>開始タグ</dfn>は次の書式でなければ[[MUST:なりません]]。 |
<dfn id=syntax-start-tags title=syntax-start-tags>開始タグ</dfn>は次の書式でなければ[[MUST:なりません]]。 |
| 616 |
following format: |
following format: |
| 617 |
|
|
| 618 |
#en |
#en |
| 619 |
<dfn id=syntax-attributes title=syntax-attributes>Attributes</dfn> for an element |
<dfn id=syntax-attributes title=syntax-attributes>Attributes</dfn> for an element |
| 620 |
are expressed inside the element's start tag. |
are expressed inside the element's start tag. |
| 621 |
#ja |
#ja |
| 622 |
要素の<dfn id=syntax-attributes title=syntax-attributes>属性</dfn>は、 |
要素の<dfn id=syntax-attributes title=syntax-attributes>属性</dfn>は、 |
| 623 |
当該要素の開始タグの内側で表現されます。 |
当該要素の開始タグの内側で表現されます。 |
| 624 |
|
|
| 625 |
#en |
#en |
| 626 |
Attributes have a name and a value. <dfn id=syntax-attribute-name title=syntax-attribute-name>Attribute names</dfn> must consist of |
Attributes have a name and a value. <dfn id=syntax-attribute-name title=syntax-attribute-name>Attribute names</dfn> must consist of |
| 627 |
one or more characters other than the <a href=#space-character title="space |
one or more characters other than the <a href=#space-character title="space |
| 628 |
character">space characters</a>, U+0000 NULL, U+0022 QUOTATION |
character">space characters</a>, U+0000 NULL, U+0022 QUOTATION |
| 631 |
the control characters, and any characters that are not defined by |
the control characters, and any characters that are not defined by |
| 632 |
Unicode. In the HTML syntax, attribute names may be written with any |
Unicode. In the HTML syntax, attribute names may be written with any |
| 633 |
mix of lower- and uppercase letters that are an <a href=#ascii-case-insensitive>ASCII |
mix of lower- and uppercase letters that are an <a href=#ascii-case-insensitive>ASCII |
| 634 |
case-insensitive</a> match for the attribute's name. |
case-insensitive</a> match for the attribute's name. |
| 635 |
#ja |
#ja |
| 636 |
属性は名前と値を持ちます。 |
属性は名前と値を持ちます。 |
| 637 |
<dfn id=syntax-attribute-name title=syntax-attribute-name>属性名</dfn>は、 |
<dfn id=syntax-attribute-name title=syntax-attribute-name>属性名</dfn>は、 |
| 638 |
<a href=#space-character title="space |
<a href=#space-character title="space |
| 642 |
制御文字、 Unicode で定義されていない文字以外の文字1文字以上で構成されなければ[[MUST:なりません]]。 |
制御文字、 Unicode で定義されていない文字以外の文字1文字以上で構成されなければ[[MUST:なりません]]。 |
| 643 |
HTML 構文では、属性名は当該属性の名前に |
HTML 構文では、属性名は当該属性の名前に |
| 644 |
<a href=#ascii-case-insensitive>ASCII |
<a href=#ascii-case-insensitive>ASCII |
| 645 |
大文字・小文字不区別</a>で一致する任意の小文字・大文字の組み合わせで書いて[[MAY:構いません]]。 |
大文字・小文字不区別</a>で一致する任意の小文字・大文字の組み合わせで書いて[[MAY:構いません]]。 |
| 646 |
|
|
| 647 |
#en |
#en |
| 648 |
<dfn id=syntax-attribute-value title=syntax-attribute-value>Attribute values</dfn> are a |
<dfn id=syntax-attribute-value title=syntax-attribute-value>Attribute values</dfn> are a |
| 649 |
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 |
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 |
| 650 |
additional restriction that the text cannot contain an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>. |
additional restriction that the text cannot contain an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>. |
| 651 |
#ja |
#ja |
| 652 |
<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>を含むことができないとの追加の制限があります。 |
<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>を含むことができないとの追加の制限があります。 |
| 653 |
|
|
| 654 |
#en |
#en |
| 655 |
Attributes can be specified in four different ways: |
Attributes can be specified in four different ways: |
| 656 |
#ja |
#ja |
| 657 |
属性は4種類の方法で指定できます。 |
属性は4種類の方法で指定できます。 |
| 658 |
|
|
| 659 |
#en |
#en |
| 660 |
Empty attribute syntax |
Empty attribute syntax |
| 661 |
#ja |
#ja |
| 662 |
空属性構文 |
空属性構文 |
| 663 |
|
|
| 664 |
#en |
#en |
| 665 |
Just the <a href=#syntax-attribute-name title=syntax-attribute-name>attribute |
Just the <a href=#syntax-attribute-name title=syntax-attribute-name>attribute |
| 666 |
name</a>. |
name</a>. |
| 667 |
#ja |
#ja |
| 668 |
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>のみです。 |
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>のみです。 |
| 669 |
|
|
| 670 |
#en |
#en |
| 671 |
In the following example, the <code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> attribute is given with |
In the following example, the <code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> attribute is given with |
| 672 |
the empty attribute syntax: |
the empty attribute syntax: |
| 673 |
#ja |
#ja |
| 674 |
次の例では、<code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> |
次の例では、<code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> |
| 675 |
属性が空属性構文により与えられています。 |
属性が空属性構文により与えられています。 |
| 676 |
|
|
| 677 |
#en |
#en |
| 678 |
If an attribute using the empty attribute syntax is to be |
If an attribute using the empty attribute syntax is to be |
| 679 |
followed by another attribute, then there must be a <a href=#space-character>space |
followed by another attribute, then there must be a <a href=#space-character>space |
| 680 |
character</a> separating the two. |
character</a> separating the two. |
| 681 |
#ja |
#ja |
| 682 |
空属性構文を用いる属性の後に別の属性が続く場合、 |
空属性構文を用いる属性の後に別の属性が続く場合、 |
| 683 |
両者を分離する<a href=#space-character>間隔文字</a>がなければ[[MUST:なりません]]。 |
両者を分離する<a href=#space-character>間隔文字</a>がなければ[[MUST:なりません]]。 |
| 684 |
|
|
| 685 |
#en |
#en |
| 686 |
Unquoted attribute value syntax |
Unquoted attribute value syntax |
| 687 |
#ja |
#ja |
| 688 |
非引用属性値構文 |
非引用属性値構文 |
| 689 |
|
|
| 690 |
#en |
#en |
| 691 |
The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>, |
The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>, |
| 692 |
followed by zero or more <a href=#space-character title="space character">space |
followed by zero or more <a href=#space-character title="space character">space |
| 693 |
characters</a>, followed by a single U+003D EQUALS SIGN |
characters</a>, followed by a single U+003D EQUALS SIGN |
| 699 |
characters, U+0027 APOSTROPHE (<code>'</code>) characters, |
characters, U+0027 APOSTROPHE (<code>'</code>) characters, |
| 700 |
U+003D EQUALS SIGN (<code>=</code>) characters, or U+003E |
U+003D EQUALS SIGN (<code>=</code>) characters, or U+003E |
| 701 |
GREATER-THAN SIGN (<code>></code>) characters, and must not be |
GREATER-THAN SIGN (<code>></code>) characters, and must not be |
| 702 |
the empty string. |
the empty string. |
| 703 |
#ja |
#ja |
| 704 |
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後に零文字以上の<a href=#space-character title="space character">間隔文字</a>があり、 |
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後に零文字以上の<a href=#space-character title="space character">間隔文字</a>があり、 |
| 705 |
その後に1文字の U+003D EQUALS SIGN 文字があり、その後に零文字以上の<a href=#space-character title="space |
その後に1文字の U+003D EQUALS SIGN 文字があり、その後に零文字以上の<a href=#space-character title="space |
| 706 |
character">間隔文字</a>があり、 |
character">間隔文字</a>があり、 |
| 712 |
U+003D EQUALS SIGN (<code>=</code>) 文字、 |
U+003D EQUALS SIGN (<code>=</code>) 文字、 |
| 713 |
U+003E |
U+003E |
| 714 |
GREATER-THAN SIGN (<code>></code>) 文字を含んでは[[MUST NOT:ならず]]、 |
GREATER-THAN SIGN (<code>></code>) 文字を含んでは[[MUST NOT:ならず]]、 |
| 715 |
空文字列であっては[[MUST NOT:なりません]]。 |
空文字列であっては[[MUST NOT:なりません]]。 |
| 716 |
|
|
| 717 |
#en |
#en |
| 718 |
In the following example, the <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute is given |
In the following example, the <code title=attr-input-value><a href=#attr-input-value>value</a></code> attribute is given |
| 719 |
with the unquoted attribute value syntax: |
with the unquoted attribute value syntax: |
| 720 |
#ja |
#ja |
| 721 |
次の例では、 |
次の例では、 |
| 722 |
<code title=attr-input-value><a href=#attr-input-value>value</a></code> |
<code title=attr-input-value><a href=#attr-input-value>value</a></code> |
| 723 |
属性が非引用属性値構文により与えられています。 |
属性が非引用属性値構文により与えられています。 |
| 724 |
|
|
| 725 |
|
|
| 726 |
#en |
#en |
| 727 |
If an attribute using the unquoted attribute syntax is to be |
If an attribute using the unquoted attribute syntax is to be |
| 728 |
followed by another attribute or by one of the optional U+002F |
followed by another attribute or by one of the optional U+002F |
| 729 |
SOLIDUS (<code>/</code>) characters allowed in step 6 of the <span title=syntax-start-tag>start tag</span> syntax above, then there |
SOLIDUS (<code>/</code>) characters allowed in step 6 of the <span title=syntax-start-tag>start tag</span> syntax above, then there |
| 730 |
must be a <a href=#space-character>space character</a> separating the two. |
must be a <a href=#space-character>space character</a> separating the two. |
| 731 |
#ja |
#ja |
| 732 |
非引用属性値構文を用いた属性に他の属性が続く場合や先述の<span title=syntax-start-tag>開始タグ</span>構文の段階6で認められる |
非引用属性値構文を用いた属性に他の属性が続く場合や先述の<span title=syntax-start-tag>開始タグ</span>構文の段階6で認められる |
| 733 |
U+002F |
U+002F |
| 734 |
SOLIDUS (<code>/</code>) 文字が続く場合、 |
SOLIDUS (<code>/</code>) 文字が続く場合、 |
| 735 |
両者を<a href=#space-character>間隔文字</a>により分離しなければ[[MUST:なりません]]。 |
両者を<a href=#space-character>間隔文字</a>により分離しなければ[[MUST:なりません]]。 |
| 736 |
|
|
| 737 |
#en |
#en |
| 738 |
Single-quoted attribute value syntax |
Single-quoted attribute value syntax |
| 739 |
#ja |
#ja |
| 740 |
単一引用符属性値構文 |
単一引用符属性値構文 |
| 741 |
|
|
| 742 |
#en |
#en |
| 743 |
The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>, |
The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>, |
| 744 |
followed by zero or more <a href=#space-character title="space character">space |
followed by zero or more <a href=#space-character title="space character">space |
| 745 |
characters</a>, followed by a single U+003D EQUALS SIGN |
characters</a>, followed by a single U+003D EQUALS SIGN |
| 749 |
addition to the requirements given above for attribute values, |
addition to the requirements given above for attribute values, |
| 750 |
must not contain any literal U+0027 APOSTROPHE (<code>'</code>) |
must not contain any literal U+0027 APOSTROPHE (<code>'</code>) |
| 751 |
characters, and finally followed by a second single U+0027 |
characters, and finally followed by a second single U+0027 |
| 752 |
APOSTROPHE (<code>'</code>) character. |
APOSTROPHE (<code>'</code>) character. |
| 753 |
#ja |
#ja |
| 754 |
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後、 |
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後、 |
| 755 |
零文字以上の<a href=#space-character title="space character">間隔文字</a>が続き、 |
零文字以上の<a href=#space-character title="space character">間隔文字</a>が続き、 |
| 756 |
その後1文字の U+003D EQUALS SIGN |
その後1文字の U+003D EQUALS SIGN |
| 760 |
この属性値については先述の属性値に関する要件に加えて生の U+0027 APOSTROPHE (<code>'</code>) |
この属性値については先述の属性値に関する要件に加えて生の U+0027 APOSTROPHE (<code>'</code>) |
| 761 |
文字を含んでは[[MUST NOT:ならず]]、その後に2つ目の1文字の |
文字を含んでは[[MUST NOT:ならず]]、その後に2つ目の1文字の |
| 762 |
U+0027 |
U+0027 |
| 763 |
APOSTROPHE (<code>'</code>) 文字が続くもの。 |
APOSTROPHE (<code>'</code>) 文字が続くもの。 |
| 764 |
|
|
| 765 |
#en |
#en |
| 766 |
In the following example, the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is given with the |
In the following example, the <code title=attr-input-type><a href=#attr-input-type>type</a></code> attribute is given with the |
| 767 |
single-quoted attribute value syntax: |
single-quoted attribute value syntax: |
| 768 |
#ja |
#ja |
| 769 |
次の例では、 |
次の例では、 |
| 770 |
<code title=attr-input-type><a href=#attr-input-type>type</a></code> |
<code title=attr-input-type><a href=#attr-input-type>type</a></code> |
| 771 |
属性が単一引用符属性値構文により与えられます。 |
属性が単一引用符属性値構文により与えられます。 |
| 772 |
|
|
| 773 |
#en |
#en |
| 774 |
If an attribute using the single-quoted attribute syntax is to |
If an attribute using the single-quoted attribute syntax is to |
| 775 |
be followed by another attribute, then there must be a <a href=#space-character>space |
be followed by another attribute, then there must be a <a href=#space-character>space |
| 776 |
character</a> separating the two. |
character</a> separating the two. |
| 777 |
|
#ja |
| 778 |
|
単一引用符属性構文を使った属性に他の属性が続く場合、両者を<a href=#space-character>間隔文字</a>によって分離しなければ[[MUST:なりません]]。 |
| 779 |
|
|
| 780 |
|
#en |
| 781 |
|
Double-quoted attribute value syntax |
| 782 |
|
#ja |
| 783 |
|
二重引用符属性値構文 |
| 784 |
|
|
| 785 |
|
#en |
| 786 |
|
The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>, |
| 787 |
|
followed by zero or more <a href=#space-character title="space character">space |
| 788 |
|
characters</a>, followed by a single U+003D EQUALS SIGN |
| 789 |
|
character, followed by zero or more <a href=#space-character title="space |
| 790 |
|
character">space characters</a>, followed by a single U+0022 |
| 791 |
|
QUOTATION MARK (<code>"</code>) character, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in |
| 792 |
|
addition to the requirements given above for attribute values, |
| 793 |
|
must not contain any literal U+0022 QUOTATION MARK |
| 794 |
|
(<code>"</code>) characters, and finally followed by a second |
| 795 |
|
single U+0022 QUOTATION MARK (<code>"</code>) character. |
| 796 |
|
#ja |
| 797 |
|
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後に零文字以上の<a href=#space-character title="space character">間隔文字</a>が続き、 |
| 798 |
|
その後に1文字の U+003D EQUALS SIGN |
| 799 |
|
文字が続き、その後に零文字以上の<a href=#space-character title="space |
| 800 |
|
character">間隔文字</a>が続き、その後に1文字の U+0022 |
| 801 |
|
QUOTATION MARK (<code>"</code>) 文字が続き、その後に<a href=#syntax-attribute-value title=syntax-attribute-value>属性値</a>が続くところ、 |
| 802 |
|
前述の属性値に関する要件に加えて生の U+0022 QUOTATION MARK |
| 803 |
|
(<code>"</code>) 文字を含んでは[[MUST:ならず]]、 |
| 804 |
|
最後に2つ目の1文字の U+0022 QUOTATION MARK (<code>"</code>) 文字が続くもの。 |
| 805 |
|
|
| 806 |
|
#en |
| 807 |
|
In the following example, the <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> attribute is given with the |
| 808 |
|
double-quoted attribute value syntax: |
| 809 |
|
#ja |
| 810 |
|
次の例では、 <code title=attr-fe-name><a href=#attr-fe-name>name</a></code> |
| 811 |
|
属性が二重引用符属性値構文で与えられます。 |
| 812 |
|
|
| 813 |
|
#en |
| 814 |
|
If an attribute using the double-quoted attribute syntax is to |
| 815 |
|
be followed by another attribute, then there must be a <a href=#space-character>space |
| 816 |
|
character</a> separating the two. |
| 817 |
|
#ja |
| 818 |
|
二重引用符属性構文を使った属性の後に他の属性が続く場合、両者を<a href=#space-character>間隔文字</a>により分離しなければ[[MUST:なりません]]。 |
| 819 |
|
|
| 820 |
|
#en |
| 821 |
|
There must never be two or more attributes on the same start tag |
| 822 |
|
whose names are an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for |
| 823 |
|
each other. |
| 824 |
|
#ja |
| 825 |
|
同じ開始タグに名前が <a href=#ascii-case-insensitive>ASCII 大文字・小文字不区別</a>で一致する属性が2つ以上あっては[[MUST:なりません]]。 |
| 826 |
|
|
| 827 |
|
#pattern |
| 828 |
|
<span class=secno>* </span>Optional tags |
| 829 |
|
#ja |
| 830 |
|
<span class=secno>$1 </span>任意選択タグ |
| 831 |
|
|
| 832 |
|
#en |
| 833 |
|
Certain tags can be <dfn id=syntax-tag-omission title=syntax-tag-omission>omitted</dfn>. |
| 834 |
|
#ja |
| 835 |
|
タグの中には<dfn id=syntax-tag-omission title=syntax-tag-omission>省略</dfn>できるものがあります。 |
| 836 |
|
|
| 837 |
|
#en |
| 838 |
|
An <code><a href=#the-html-element>html</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the |
| 839 |
|
first thing inside the <code><a href=#the-html-element>html</a></code> element is not a <a href=#syntax-comments title=syntax-comments>comment</a>. |
| 840 |
|
#ja |
| 841 |
|
<code><a href=#the-html-element>html</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、 |
| 842 |
|
<code><a href=#the-html-element>html</a></code> 要素の内側の最初のものが<a href=#syntax-comments title=syntax-comments>注釈</a>でない場合、 |
| 843 |
|
省略して[[MAY:構いません]]。 |
| 844 |
|
|
| 845 |
|
#en |
| 846 |
|
An <code><a href=#the-html-element>html</a></code> element's <span title=syntax-end-tag>end |
| 847 |
|
tag</span> may be omitted if the <code><a href=#the-html-element>html</a></code> element is not |
| 848 |
|
immediately followed by a <a href=#syntax-comments title=syntax-comments>comment</a> |
| 849 |
|
and the element contains a <code><a href=#the-body-element>body</a></code> element that is either |
| 850 |
|
not empty or whose <span title=syntax-start-tag>start tag</span> |
| 851 |
|
has not been omitted. |
| 852 |
|
#ja |
| 853 |
|
<code><a href=#the-html-element>html</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 854 |
|
<code><a href=#the-html-element>html</a></code> 要素の直後が<a href=#syntax-comments title=syntax-comments>注釈</a>ではなく、 |
| 855 |
|
空でないか、または<span title=syntax-start-tag>開始タグ</span>が省略されていない |
| 856 |
|
<code><a href=#the-body-element>body</a></code> 要素を同要素が含む場合、 |
| 857 |
|
省略して[[MAY:構いません]]。 |
| 858 |
|
|
| 859 |
|
#en |
| 860 |
|
A <code><a href=#the-head-element>head</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the |
| 861 |
|
first thing inside the <code><a href=#the-head-element>head</a></code> element is an element. |
| 862 |
|
#ja |
| 863 |
|
<code><a href=#the-head-element>head</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、 |
| 864 |
|
<code><a href=#the-head-element>head</a></code> 要素の内側の最初のものが要素である場合、 |
| 865 |
|
省略して[[MAY:構いません]]。 |
| 866 |
|
|
| 867 |
|
#en |
| 868 |
|
A <code><a href=#the-head-element>head</a></code> element's <span title=syntax-end-tag>end |
| 869 |
|
tag</span> may be omitted if the <code><a href=#the-head-element>head</a></code> element is not |
| 870 |
|
immediately followed by a <a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>. |
| 871 |
|
#ja |
| 872 |
|
<code><a href=#the-head-element>head</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 873 |
|
<code><a href=#the-head-element>head</a></code> 要素の直後に<a href=#space-character>間隔文字</a>や<a href=#syntax-comments title=syntax-comments>注釈</a>がない場合、 |
| 874 |
|
省略して[[MAY:構いません]]。 |
| 875 |
|
|
| 876 |
|
#en |
| 877 |
|
A <code><a href=#the-body-element>body</a></code> element's <span title=syntax-start-tag>start tag</span> may be omitted if the |
| 878 |
|
first thing inside the <code><a href=#the-body-element>body</a></code> element is not a |
| 879 |
|
<a href=#space-character>space character</a> or a <a href=#syntax-comments title=syntax-comments>comment</a>, except if the first thing |
| 880 |
|
inside the <code><a href=#the-body-element>body</a></code> element is a <code><a href=#script>script</a></code> or |
| 881 |
|
<code><a href=#the-style-element>style</a></code> element. <!-- Note that even if the </head> end |
| 882 |
|
tag is present, the parser makes <style> and <script> elements |
| 883 |
|
between </head> and <body> end up in the <head> instead of implying |
| 884 |
|
the <body> --> |
| 885 |
|
#ja |
| 886 |
|
<code><a href=#the-body-element>body</a></code> 要素の<span title=syntax-start-tag>開始タグ</span>は、 |
| 887 |
|
<code><a href=#the-body-element>body</a></code> 要素の内側の最初のものが<a href=#space-character>間隔文字</a>や<a href=#syntax-comments title=syntax-comments>注釈</a>でない場合、 |
| 888 |
|
<code><a href=#the-body-element>body</a></code> 要素の内側の最初のものが |
| 889 |
|
<code><a href=#script>script</a></code> 要素や |
| 890 |
|
<code><a href=#the-style-element>style</a></code> 要素の場合を除き、 |
| 891 |
|
省略して[[MAY:構いません]]。 |
| 892 |
|
<!-- Note that even if the </head> end |
| 893 |
|
tag is present, the parser makes <style> and <script> elements |
| 894 |
|
between </head> and <body> end up in the <head> instead of implying |
| 895 |
|
the <body> --> |
| 896 |
|
|
| 897 |
|
#en |
| 898 |
|
A <code><a href=#the-body-element>body</a></code> element's <span title=syntax-end-tag>end |
| 899 |
|
tag</span> may be omitted if the <code><a href=#the-body-element>body</a></code> element is not |
| 900 |
|
immediately followed by a <a href=#syntax-comments title=syntax-comments>comment</a> and the element is either not |
| 901 |
|
empty or its <span title=syntax-start-tag>start tag</span> has not |
| 902 |
|
been omitted. |
| 903 |
|
#ja |
| 904 |
|
<code><a href=#the-body-element>body</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 905 |
|
<code><a href=#the-body-element>body</a></code> 要素の直後が<a href=#syntax-comments title=syntax-comments>注釈</a>ではなく、 |
| 906 |
|
要素が空ではないか、または<span title=syntax-start-tag>開始タグ</span>が省略されていない場合、 |
| 907 |
|
省略して[[MAY:構いません]]。 |
| 908 |
|
|
| 909 |
|
#en |
| 910 |
|
A <code><a href=#the-li-element>li</a></code> element's <span title=syntax-end-tag>end |
| 911 |
|
tag</span> may be omitted if the <code><a href=#the-li-element>li</a></code> element is |
| 912 |
|
immediately followed by another <code><a href=#the-li-element>li</a></code> element or if there |
| 913 |
|
is no more content in the parent element. |
| 914 |
#ja |
#ja |
|
単一引用符属性構文を使った属性に他の属性が続く場合、両者を<a href=#space-character>間隔文字</a>によって分離しなければ[[MUST:なりません]]。 |
|
| 915 |
|
<code><a href=#the-li-element>li</a></code> 要素の<span title=syntax-end-tag>終了タグ</span>は、 |
| 916 |
|
<code><a href=#the-li-element>li</a></code> 要素の直後が別の |
| 917 |
|
<code><a href=#the-li-element>li</a></code> 要素か、 |
| 918 |
|
親要素にそれ以上に内容がない場合、 |
| 919 |
|
省略して[[MAY:構いません]]。 |