| 621 |
are expressed inside the element's start tag. |
are expressed inside the element's start tag. |
| 622 |
#ja |
#ja |
| 623 |
要素の<dfn id=syntax-attributes title=syntax-attributes>属性</dfn>は、 |
要素の<dfn id=syntax-attributes title=syntax-attributes>属性</dfn>は、 |
|
当該要素の開始タグの内側で表現されます。 |
|
| 624 |
|
当該要素の開始タグの内側で表現されます。 |
| 625 |
|
|
| 626 |
|
#en |
| 627 |
|
Attributes have a name and a value. <dfn id=syntax-attribute-name title=syntax-attribute-name>Attribute names</dfn> must consist of |
| 628 |
|
one or more characters other than the <a href=#space-character title="space |
| 629 |
|
character">space characters</a>, U+0000 NULL, U+0022 QUOTATION |
| 630 |
|
MARK ("), U+0027 APOSTROPHE ('), U+003E GREATER-THAN SIGN |
| 631 |
|
(>), U+002F SOLIDUS (/), and U+003D EQUALS SIGN (=) characters, |
| 632 |
|
the control characters, and any characters that are not defined by |
| 633 |
|
Unicode. In the HTML syntax, attribute names may be written with any |
| 634 |
|
mix of lower- and uppercase letters that are an <a href=#ascii-case-insensitive>ASCII |
| 635 |
|
case-insensitive</a> match for the attribute's name. |
| 636 |
|
#ja |
| 637 |
|
属性は名前と値を持ちます。 |
| 638 |
|
<dfn id=syntax-attribute-name title=syntax-attribute-name>属性名</dfn>は、 |
| 639 |
|
<a href=#space-character title="space |
| 640 |
|
character">間隔文字</a>、U+0000 NULL、U+0022 QUOTATION |
| 641 |
|
MARK (")、U+0027 APOSTROPHE (')、U+003E GREATER-THAN SIGN |
| 642 |
|
(>)、U+002F SOLIDUS (/)、U+003D EQUALS SIGN (=) のいずれかの文字、 |
| 643 |
|
制御文字、 Unicode で定義されていない文字以外の文字1文字以上で構成されなければ[[MUST:なりません]]。 |
| 644 |
|
HTML 構文では、属性名は当該属性の名前に |
| 645 |
|
<a href=#ascii-case-insensitive>ASCII |
| 646 |
|
大文字・小文字不区別</a>で一致する任意の小文字・大文字の組み合わせで書いて[[MAY:構いません]]。 |
| 647 |
|
|
| 648 |
|
#en |
| 649 |
|
<dfn id=syntax-attribute-value title=syntax-attribute-value>Attribute values</dfn> are a |
| 650 |
|
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 |
| 651 |
|
additional restriction that the text cannot contain an <a href=#syntax-ambiguous-ampersand title=syntax-ambiguous-ampersand>ambiguous ampersand</a>. |
| 652 |
|
#ja |
| 653 |
|
<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>を含むことができないとの追加の制限があります。 |
| 654 |
|
|
| 655 |
|
#en |
| 656 |
|
Attributes can be specified in four different ways: |
| 657 |
|
#ja |
| 658 |
|
属性は4種類の方法で指定できます。 |
| 659 |
|
|
| 660 |
|
#en |
| 661 |
|
Empty attribute syntax |
| 662 |
|
#ja |
| 663 |
|
空属性構文 |
| 664 |
|
|
| 665 |
|
#en |
| 666 |
|
Just the <a href=#syntax-attribute-name title=syntax-attribute-name>attribute |
| 667 |
|
name</a>. |
| 668 |
|
#ja |
| 669 |
|
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>のみです。 |
| 670 |
|
|
| 671 |
|
#en |
| 672 |
|
In the following example, the <code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> attribute is given with |
| 673 |
|
the empty attribute syntax: |
| 674 |
|
#ja |
| 675 |
|
次の例では、<code title=attr-fe-disabled><a href=#attr-fe-disabled>disabled</a></code> |
| 676 |
|
属性が空属性構文により与えられています。 |
| 677 |
|
|
| 678 |
|
#en |
| 679 |
|
If an attribute using the empty attribute syntax is to be |
| 680 |
|
followed by another attribute, then there must be a <a href=#space-character>space |
| 681 |
|
character</a> separating the two. |
| 682 |
|
#ja |
| 683 |
|
空属性構文を用いる属性の後に別の属性が続く場合、 |
| 684 |
|
両者を分離する<a href=#space-character>間隔文字</a>がなければ[[MUST:なりません]]。 |
| 685 |
|
|
| 686 |
|
#en |
| 687 |
|
Unquoted attribute value syntax |
| 688 |
|
#ja |
| 689 |
|
非引用属性値構文 |
| 690 |
|
|
| 691 |
|
#en |
| 692 |
|
The <a href=#syntax-attribute-name title=syntax-attribute-name>attribute name</a>, |
| 693 |
|
followed by zero or more <a href=#space-character title="space character">space |
| 694 |
|
characters</a>, followed by a single U+003D EQUALS SIGN |
| 695 |
|
character, followed by zero or more <a href=#space-character title="space |
| 696 |
|
character">space characters</a>, followed by the <a href=#syntax-attribute-value title=syntax-attribute-value>attribute value</a>, which, in |
| 697 |
|
addition to the requirements given above for attribute values, |
| 698 |
|
must not contain any literal <a href=#space-character title="space character">space |
| 699 |
|
characters</a>, any U+0022 QUOTATION MARK (<code>"</code>) |
| 700 |
|
characters, U+0027 APOSTROPHE (<code>'</code>) characters, |
| 701 |
|
U+003D EQUALS SIGN (<code>=</code>) characters, or U+003E |
| 702 |
|
GREATER-THAN SIGN (<code>></code>) characters, and must not be |
| 703 |
|
the empty string. |
| 704 |
|
#ja |
| 705 |
|
<a href=#syntax-attribute-name title=syntax-attribute-name>属性名</a>の後に零文字以上の<a href=#space-character title="space character">間隔文字</a>があり、 |
| 706 |
|
その後に1文字の U+003D EQUALS SIGN 文字があり、その後に零文字以上の<a href=#space-character title="space |
| 707 |
|
character">間隔文字</a>があり、 |
| 708 |
|
その後に<a href=#syntax-attribute-value title=syntax-attribute-value>属性値</a>があるもので、 |
| 709 |
|
その属性値については前述の属性値に関する要件に加え、 |
| 710 |
|
生の<a href=#space-character title="space character">間隔文字</a>、 |
| 711 |
|
U+0022 QUOTATION MARK (<code>"</code>) 文字、 |
| 712 |
|
U+0027 APOSTROPHE (<code>'</code>) 文字、 |
| 713 |
|
U+003D EQUALS SIGN (<code>=</code>) 文字、 |
| 714 |
|
U+003E |
| 715 |
|
GREATER-THAN SIGN (<code>></code>) 文字を含んでは[[MUST NOT:ならず]]、 |
| 716 |
|
空文字列であっては[[MUST NOT:なりません]]。 |