<alt-text>

Alternate Text Name 代替テキスト名 (図表用)

画像や図などの構造に非常に短い文字名、説明、目的説明を提供するために使用される単語または語句。

備考

アクセシビリティ: 短い <alt-text> は、完全な画像の代用として画像の利用が制限されたウェブサイトやデバイス上での特別なアクセシビリティ用表示やプレゼンテーションを提供するために使用できます。(たとえば、<alt-text> 要素は通常スクリーンリーダーによって読み込まれ、<alt-text> は、限られた画像容量を持つデバイスにおいて、図や画像の「背後に」ある単語を表示するためにも使用されます)
このタグの使用は、スクリーンリーダーの発音などのアクセシビリティのために限定してください。この要素は、図や表などのそばに表示される視覚的な要素である <caption> の代わりに使用してはいけません<alt-text><alt-text> が使われている図形、キャプション、その他の要素が使用できないか、または対象の人またはデバイスタイプで処理でない場合を除き、視覚的要素として使われることはありません。この要素は視覚的ではないので、<alt-text> はその内部に書体マークアップを許可しません。画像オブジェクト (書体マークアップを含む) の簡略化された代替テキストは <textual-form> 要素を使用し作成することができます。

関連要素

同様な非視覚的要素である <long-desc> は、図や表などについて詳しく記述するときに使用します。

属性

コンテンツ・モデル

<!ELEMENT  alt-text     (#PCDATA)                                    >

記述方法

文字、数字または特殊文字

この要素は以下の要素内に含むことができます:

用例 1

図中のイメージの短い説明:
...
<sec sec-type="results">
<title>Results</title>
<p>We identified 703 abstracts, of which 687 were not
relevant ... Details of randomisation procedures,
treatment schedules, and numbers of patients followed up
are given on the <italic>BMJ</italic> website.</p>
<fig id="F1">
<caption>
<title>Deaths among patients receiving day hospital care
or alternative services.</title>
<p>Odds ratios of death by end of follow up were calculated by 
fixed effects model. Heterogeneity between trials is presented as
&#x03C7;<sup>2</sup></p>
</caption>
<alt-text>Deaths in hospitals or with alternative services</alt-text>
<graphic xmlns:xlink="http://www.w3.org/1999/xlink"
xlink:href="fors2662.f1">
<object-id>456472</object-id>
</graphic>
</fig>
...</sec>
...

用例 2

行内画像の発音:
...
<p>The McDuck Corporation <inline-graphic
xlink:href="images/1742-9994-3-18-1.jpg">
<alt-text>McDuck logo</alt-text>
</inline-graphic> first initiated these far-flung
programs in 2005 ...</p>
...

用例 3

囲みテキスト内のイメージの短い説明:
...
<boxed-text position="float" id="B1">
<caption>
<title>The Hens First Meeting on Day 1</title>
<p>The music notation graph for four hens on their first day
of meeting. The horizontal lines represent the hens by
their ranks within their hierarchy: red for the top-ranked hen,
blue for the second-ranked, green for the third-ranked, and black
for the fourth-ranked. Arrows indicate aggressive acts from one
hen to another, and the arrows are in the color of the initiator
and go from her line to the line of the receiver. The numbers at
the ends of the lines show the wing badge identification numbers
of the hens, and the time in minutes and hours elapsed since the
group was introduced is indicated above each block of the
graph.</p></caption>
<graphic xlink:href="images/1742-9994-3-18-1.jpg">
<alt-text>music notation graph of first meeting</alt-text>
</graphic>
</boxed-text>
...

用例 4

代替テキストは説明的であり、キャプションと対応していない:
...
  <fig id="fg-3">
   <caption><p>Picture with a Positive Association</p></caption>
     <graphic xlink:href="frontView.png">
       <alt-text>Collie puppy image</alt-text>
     </graphic>
  </fig>
...