Skip to content

Commit

Permalink
More neutral img replacement text example
Browse files Browse the repository at this point in the history
  • Loading branch information
edent authored and Mason Freed committed Jun 3, 2022
1 parent 8562a2b commit 00f0792
Showing 1 changed file with 25 additions and 26 deletions.
51 changes: 25 additions & 26 deletions source
Expand Up @@ -29905,18 +29905,17 @@ Standards mode, and about 9% triggered the Standards mode.</p>
<div class="example">

<p>Consider a news article about a political figure, in which the individual's face was shown in
an image that, through a style sheet, is floated to the right. The image is not purely
decorative, as it is relevant to the story. The image is not entirely redundant with the story
either, as it shows what the politician looks like. Whether any alternative text need be provided
is an authoring decision, in part influenced by whether the image colors the interpretation of
the prose.</p>
an image. The image is not purely decorative, as it is relevant to the story. The image is not
entirely redundant with the story either, as it shows what the politician looks like. Whether
any alternative text need be provided is an authoring decision, decided by whether the image
influences the interpretation of the prose.</p>

<p>In this first variant, the image is shown without context, and no alternative text is
provided:</p>

<pre><code class="html">&lt;p><strong>&lt;img src="alexsalmond.jpeg" alt=""></strong> Ahead of today's referendum,
the First Minister of Scotland, Alex Salmond, wrote an open letter to all
registered voters. In it, he admitted that all countries make mistakes.&lt;/p></code></pre>
<pre><code class="html">&lt;p><strong>&lt;img src="president.jpeg" alt=""></strong> Ahead of today's referendum,
the President wrote an open letter to all registered voters. In it, she admitted that the country was
divided.&lt;/p></code></pre>

<p>If the picture is just a face, there might be no value in describing it. It's of no interest
to the reader whether the individual has red hair or blond hair, whether the individual has white
Expand All @@ -29926,20 +29925,20 @@ registered voters. In it, he admitted that all countries make mistakes.&lt;/p></
particularly happy, or devastated, some alternative text would be useful in setting the tone of
the article, a tone that might otherwise be missed:</p>

<pre><code class="html">&lt;p><strong>&lt;img src="alexsalmond.jpeg" alt="Alex Salmond is sad."></strong>
Ahead of today's referendum, the First Minister of Scotland, Alex Salmond,
wrote an open letter to all registered voters. In it, he admitted that all
countries make mistakes.&lt;/p></code></pre>
<pre><code class="html">&lt;p><strong>&lt;img src="president.jpeg" alt="The President is sad."></strong>
Ahead of today's referendum, the President wrote an open letter to all
registered voters. In it, she admitted that the country was divided.
&lt;/p></code></pre>

<pre><code class="html">&lt;p><strong>&lt;img src="alexsalmond.jpeg" alt="Alex Salmond is ecstatic!"></strong>
Ahead of today's referendum, the First Minister of Scotland, Alex Salmond,
wrote an open letter to all registered voters. In it, he admitted that all
countries make mistakes.&lt;/p></code></pre>
<pre><code class="html">&lt;p><strong>&lt;img src="president.jpeg" alt="The President is happy!"></strong>
Ahead of today's referendum, the President wrote an open letter to all
registered voters. In it, she admitted that the country was divided.
&lt;/p></code></pre>

<p>Whether the individual was "sad" or "ecstatic" makes a difference to how the rest of the
paragraph is to be interpreted: is he likely saying that he is resigned to the populace making a
bad choice in the upcoming referendum, or is he saying that the election was a mistake but the
likely turnout will make it irrelevant? The interpretation varies based on the image.</p>
<p>Whether the individual was "sad" or "happy" makes a difference to how the rest of the
paragraph is to be interpreted: is she likely saying that she is unhappy with the country
being divided, or is she saying that the prospect of a divided country is good for her
political career? The interpretation varies based on the image.</p>

</div>

Expand All @@ -29948,13 +29947,12 @@ countries make mistakes.&lt;/p></code></pre>
<p>If the image has a caption, then including alternative text avoids leaving the non-visual user
confused as to what the caption refers to.</p>

<pre><code class="html">&lt;p>Ahead of today's referendum, the First Minister of Scotland, Alex Salmond,
wrote an open letter to all registered voters. In it, he admitted that all
countries make mistakes.&lt;/p>
<pre><code class="html">&lt;p>Ahead of today's referendum, the President wrote an open letter to
all registered voters. In it, she admitted that the country was divided.&lt;/p>
<strong>&lt;figure>
&lt;img src="alexsalmond.jpeg"
alt="A high forehead, cheerful disposition, and dark hair round out Alex Salmond's face.">
&lt;figcaption> Alex Salmond, SNP. Photo &copy; 2014 PolitiPhoto. &lt;/figcaption>
&lt;img src="president.jpeg"
alt="A high forehead, cheerful disposition, and dark hair round out the President's face.">
&lt;figcaption> The President of Ruritania. Photo &copy; 2014 PolitiPhoto. &lt;/figcaption>
&lt;/figure></strong></code></pre>

</div>
Expand Down Expand Up @@ -126828,6 +126826,7 @@ INSERT INTERFACES HERE
田村健人 (Kent TAMURA),
Taylor Hunt,
Ted Mielczarek,
Terence Eden, <!-- edent on GitHub -->
Terrence Wood,
Tetsuharu OHZEKI,
Theresa O'Connor,
Expand Down

0 comments on commit 00f0792

Please sign in to comment.