<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: What to do about alt text</title>
	<atom:link href="http://www.kryogenix.org/days/2005/05/13/about/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kryogenix.org/days/2005/05/13/about</link>
	<description>scratched tallies on the prison wall</description>
	<pubDate>Wed, 07 Jan 2009 18:04:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: zsepi</title>
		<link>http://www.kryogenix.org/days/2005/05/13/about/comment-page-1#comment-285</link>
		<dc:creator>zsepi</dc:creator>
		<pubDate>Thu, 01 Jan 1970 01:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/adpb/2005/05/13/about/#comment-285</guid>
		<description>&lt;p&gt;I would put the caption text in the alt attribute (where it belongs), then use &lt;span class="caps"&gt;CSS&lt;/span&gt; and/or JavaScript to display it after the image as a &#8220;normal&#8221; caption&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I would put the caption text in the alt attribute (where it belongs), then use <span class="caps">CSS</span> and/or JavaScript to display it after the image as a &#8220;normal&#8221; caption</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrben</title>
		<link>http://www.kryogenix.org/days/2005/05/13/about/comment-page-1#comment-286</link>
		<dc:creator>mrben</dc:creator>
		<pubDate>Thu, 01 Jan 1970 01:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/adpb/2005/05/13/about/#comment-286</guid>
		<description>&lt;p&gt;Dammit &#8211; I was about to suggest that&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Dammit &#8211; I was about to suggest that</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2005/05/13/about/comment-page-1#comment-287</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Thu, 01 Jan 1970 01:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/adpb/2005/05/13/about/#comment-287</guid>
		<description>&lt;p&gt;How would you use &lt;span class="caps"&gt;CSS&lt;/span&gt; to display it after the image? JavaScript is, er, doable, certainly, but it&#8217;s rather a sledgehammer to crack a smallish nut.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>How would you use <span class="caps">CSS</span> to display it after the image? JavaScript is, er, doable, certainly, but it&#8217;s rather a sledgehammer to crack a smallish nut.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Rutter</title>
		<link>http://www.kryogenix.org/days/2005/05/13/about/comment-page-1#comment-288</link>
		<dc:creator>Richard Rutter</dc:creator>
		<pubDate>Thu, 01 Jan 1970 01:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/adpb/2005/05/13/about/#comment-288</guid>
		<description>&lt;p&gt;It&#8217;s a tricky question that&#8217;s bugged me too. I&#8217;m not sure there&#8217;s an entirely satisfactory answer, but one approach is to think about the caption and the alt text in tandem.&lt;/p&gt;

	&lt;p&gt;By which I mean that the caption does not necessarily belong in the alt text. &lt;span class="caps"&gt;BBC &lt;/span&gt;News approaches this quite well: consider &lt;a href="http://news.bbc.co.uk/1/hi/business/4542913.stm"&gt;this story&lt;/a&gt;. The caption for the photo is &#8220;Manchester United fans have made their feelings clear&#8221; but the alt text is simply &#8220;Angry fans&#8220;. They could expand on the angry fans bit to describe the photo a little more, but with the two pieces of text working in tandem, the overall &#8216;picture&#8217; is clear.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>It&#8217;s a tricky question that&#8217;s bugged me too. I&#8217;m not sure there&#8217;s an entirely satisfactory answer, but one approach is to think about the caption and the alt text in tandem.</p>
<p>By which I mean that the caption does not necessarily belong in the alt text. <span class="caps">BBC </span>News approaches this quite well: consider <a href="http://news.bbc.co.uk/1/hi/business/4542913.stm">this story</a>. The caption for the photo is &#8220;Manchester United fans have made their feelings clear&#8221; but the alt text is simply &#8220;Angry fans&#8220;. They could expand on the angry fans bit to describe the photo a little more, but with the two pieces of text working in tandem, the overall &#8216;picture&#8217; is clear.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2005/05/13/about/comment-page-1#comment-289</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Thu, 01 Jan 1970 01:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/adpb/2005/05/13/about/#comment-289</guid>
		<description>&lt;p&gt;Richard: I&#8217;ve thought about that. The key point from my perspective is that the alt text, as I understand it, isn&#8217;t supposed to describe the picture, it&#8217;s supposed to be text that replaces the picture. So if you replace the picture with its alt text, the page still makes sense, and you don&#8217;t even need to know that there &lt;strong&gt;was&lt;/strong&gt; a picture there. That&#8217;s all well and good as long as the picture is simply supporting the bulk of the text, but when the picture itself is a critical part of the content then it&#8217;s left a bit adrift. I reckon this is a legacy of &lt;span class="caps"&gt;HTML&lt;/span&gt;&#8217;s original design as a language for marking up academic documents, where the only images you&#8217;d have got would have been graphs :-)&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Richard: I&#8217;ve thought about that. The key point from my perspective is that the alt text, as I understand it, isn&#8217;t supposed to describe the picture, it&#8217;s supposed to be text that replaces the picture. So if you replace the picture with its alt text, the page still makes sense, and you don&#8217;t even need to know that there <strong>was</strong> a picture there. That&#8217;s all well and good as long as the picture is simply supporting the bulk of the text, but when the picture itself is a critical part of the content then it&#8217;s left a bit adrift. I reckon this is a legacy of <span class="caps">HTML</span>&#8217;s original design as a language for marking up academic documents, where the only images you&#8217;d have got would have been graphs :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: deepak</title>
		<link>http://www.kryogenix.org/days/2005/05/13/about/comment-page-1#comment-290</link>
		<dc:creator>deepak</dc:creator>
		<pubDate>Thu, 01 Jan 1970 01:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/adpb/2005/05/13/about/#comment-290</guid>
		<description>&lt;p&gt;Something more to think about: IE renders alt text as tooltip while Firfox renders only &#8216;title&#8217; text as tooltip.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Something more to think about: IE renders alt text as tooltip while Firfox renders only &#8216;title&#8217; text as tooltip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Rutter</title>
		<link>http://www.kryogenix.org/days/2005/05/13/about/comment-page-1#comment-291</link>
		<dc:creator>Richard Rutter</dc:creator>
		<pubDate>Thu, 01 Jan 1970 01:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/adpb/2005/05/13/about/#comment-291</guid>
		<description>&lt;p&gt;You&#8217;re indeed right that the alt text is an alternative to the image, hence the attribute&#8217;s name of course. That said I think the practicality of how alt text is used is slightly different.&lt;/p&gt;

	&lt;p&gt;The reality is that images are always announced in one way or another so folks want to know what they are missing out on. I&#8217;ve been told this is particularly important to the visually impaired. That&#8217;s not say a lengthy description is necessarily required as the alt text still needs to fit into the flow of the document. Tricky stuff though.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>You&#8217;re indeed right that the alt text is an alternative to the image, hence the attribute&#8217;s name of course. That said I think the practicality of how alt text is used is slightly different.</p>
<p>The reality is that images are always announced in one way or another so folks want to know what they are missing out on. I&#8217;ve been told this is particularly important to the visually impaired. That&#8217;s not say a lengthy description is necessarily required as the alt text still needs to fit into the flow of the document. Tricky stuff though.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Willison</title>
		<link>http://www.kryogenix.org/days/2005/05/13/about/comment-page-1#comment-292</link>
		<dc:creator>Simon Willison</dc:creator>
		<pubDate>Thu, 01 Jan 1970 01:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/adpb/2005/05/13/about/#comment-292</guid>
		<description>&lt;p&gt;zsepi: I disagree; the caption does &lt;span class="caps"&gt;NOT&lt;/span&gt; belong in the attribute. The alt attribute is meant to act as an alternative to the image &#8211; that&#8217;s why browsers aren&#8217;t meant to display it at all if images are turned on (something IE and Netscape 4 famously get wrong).&lt;/p&gt;

	&lt;p&gt;Not that I have any good answers for Stuart though. To be honest, I&#8217;m stumped.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>zsepi: I disagree; the caption does <span class="caps">NOT</span> belong in the attribute. The alt attribute is meant to act as an alternative to the image &#8211; that&#8217;s why browsers aren&#8217;t meant to display it at all if images are turned on (something IE and Netscape 4 famously get wrong).</p>
<p>Not that I have any good answers for Stuart though. To be honest, I&#8217;m stumped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: zsepi</title>
		<link>http://www.kryogenix.org/days/2005/05/13/about/comment-page-1#comment-293</link>
		<dc:creator>zsepi</dc:creator>
		<pubDate>Thu, 01 Jan 1970 01:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/adpb/2005/05/13/about/#comment-293</guid>
		<description>&lt;p&gt;sil,&lt;br /&gt;
the &lt;code&gt;alt&lt;/code&gt; attribute should be empty only when its image&#8217;s point is &lt;em&gt;decoration&lt;/em&gt;. Since we &lt;strong&gt;do&lt;/strong&gt; separate content and presentation, there should be no decoration images in the markup (spare for the ones added with css or javascript), hence the &lt;code&gt;alt&lt;/code&gt; should always contain the alternative content.&lt;/p&gt;

	&lt;p&gt;To achieve your goal with &lt;span class="caps"&gt;CSS&lt;/span&gt;, all you should write is &lt;code&gt;img[alt]:after { content: attr(alt); }&lt;/code&gt;. However, it works not in most browsers (only managed to get it right in Opera). Ouch.&lt;br /&gt;
Guess you have to use the sledgehammer &#8211; the problem now does resemble a nail, doesn&#8217;t it?&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>sil,<br />
the <code>alt</code> attribute should be empty only when its image&#8217;s point is <em>decoration</em>. Since we <strong>do</strong> separate content and presentation, there should be no decoration images in the markup (spare for the ones added with css or javascript), hence the <code>alt</code> should always contain the alternative content.</p>
<p>To achieve your goal with <span class="caps">CSS</span>, all you should write is <code>img[alt]:after { content: attr(alt); }</code>. However, it works not in most browsers (only managed to get it right in Opera). Ouch.<br />
Guess you have to use the sledgehammer &#8211; the problem now does resemble a nail, doesn&#8217;t it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Richard Rutter</title>
		<link>http://www.kryogenix.org/days/2005/05/13/about/comment-page-1#comment-294</link>
		<dc:creator>Richard Rutter</dc:creator>
		<pubDate>Thu, 01 Jan 1970 01:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/adpb/2005/05/13/about/#comment-294</guid>
		<description>&lt;p&gt;As a point of reference, Joe Clark &lt;a href="http://www.joeclark.org/book/sashay/serialization/Chapter06.html"&gt;writes in his book&lt;/a&gt; &#8220;If the alt text of an image would duplicate words that immediately precede or follow the image you may use an empty alt text. A typical example of this is an About Us page that show little thumbnail photos of staff next to their names.&#8221;&lt;/p&gt;

	&lt;p&gt;Perhaps that was the answer all along, as you originally hinted.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>As a point of reference, Joe Clark <a href="http://www.joeclark.org/book/sashay/serialization/Chapter06.html">writes in his book</a> &#8220;If the alt text of an image would duplicate words that immediately precede or follow the image you may use an empty alt text. A typical example of this is an About Us page that show little thumbnail photos of staff next to their names.&#8221;</p>
<p>Perhaps that was the answer all along, as you originally hinted.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
