W3C home > Mailing lists > Public > public-html-commits@w3.org > August 2008

html5/spec Overview.html,1.1167,1.1168

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 04 Aug 2008 09:10:48 +0000
To: public-html-commits@w3.org
Message-Id: <E1KPw5Y-0005oA-P0@lionel-hutz.w3.org>

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv22292

Modified Files:
	Overview.html 
Log Message:
Address the case of a graphic containing only text. (whatwg r1976)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1167
retrieving revision 1.1168
diff -u -d -r1.1167 -r1.1168
--- Overview.html	4 Aug 2008 09:02:10 -0000	1.1167
+++ Overview.html	4 Aug 2008 09:10:45 -0000	1.1168
@@ -797,17 +797,20 @@
             phrase or label with an alternative graphical representation:
             icons</a>
 
-           <li><a href="#a-graphical"><span class=secno>4.7.2.1.3. </span>A
+           <li><a href="#text-that"><span class=secno>4.7.2.1.3. </span>Text
+            that has been rendered to a graphic for typographical effect</a>
+
+           <li><a href="#a-graphical"><span class=secno>4.7.2.1.4. </span>A
             graphical representation of some of the surrounding text</a>
 
-           <li><a href="#a-purely"><span class=secno>4.7.2.1.4. </span>A
+           <li><a href="#a-purely"><span class=secno>4.7.2.1.5. </span>A
             purely decorative image that doesn't add any information but is
             still specific to the surrounding content</a>
 
-           <li><a href="#a-key"><span class=secno>4.7.2.1.5. </span>A key
+           <li><a href="#a-key"><span class=secno>4.7.2.1.6. </span>A key
             part of the content</a>
 
-           <li><a href="#an-image"><span class=secno>4.7.2.1.6. </span>An
+           <li><a href="#an-image"><span class=secno>4.7.2.1.7. </span>An
             image in an e-mail or document intended for a specific person who
             is known to be able to view images</a>
           </ul>
@@ -16231,7 +16234,28 @@
     been there in the first place.</p>
   </div>
 
-  <h6 id=a-graphical><span class=secno>4.7.2.1.3. </span>A graphical
+  <h6 id=text-that><span class=secno>4.7.2.1.3. </span>Text that has been
+   rendered to a graphic for typographical effect</h6>
+
+  <p>Sometimes, an image just consists of text, and the purpose of the image
+   is not to highlight the actual typographic effects used to render the
+   text, but just to convey the text itself.
+
+  <p>In such cases, the <code title=attr-img-alt><a
+   href="#alt0">alt</a></code> attribute must be present but must consist of
+   the same text as written in the image itself.
+
+  <div class=example>
+   <p>Consider a graphic containing the text "Earth Day", but with the
+    letters all decorated with flowers and plants. If the text is merely
+    being used as a header, to spice up the page for graphical users, then
+    the correct alternative text is just the same text "Earth Day", and no
+    mention need be made of the decorations:</p>
+
+   <pre>&lt;h1></pre>
+   <img alt="Earth Day" src=earthdayheader.png></div>
+
+  <h6 id=a-graphical><span class=secno>4.7.2.1.4. </span>A graphical
    representation of some of the surrounding text</h6>
 
   <p>In many cases, the image is actually just supplementary, and its
@@ -16264,7 +16288,7 @@
    doesn't make the page any less useful, but including the image makes it a
    lot easier for users of visual browsers to understand the concept.
 
-  <h6 id=a-purely><span class=secno>4.7.2.1.4. </span>A purely decorative
+  <h6 id=a-purely><span class=secno>4.7.2.1.5. </span>A purely decorative
    image that doesn't add any information but is still specific to the
    surrounding content</h6>
 
@@ -16300,7 +16324,7 @@
    scheme, the image should be specified in the site's CSS, not in the markup
    of the document.
 
-  <h6 id=a-key><span class=secno>4.7.2.1.5. </span>A key part of the content</h6>
+  <h6 id=a-key><span class=secno>4.7.2.1.6. </span>A key part of the content</h6>
 
   <p>In some cases, the image is a critical part of the content. This could
    be the case, for instance, on a page that is part of a photo gallery. The
@@ -16408,7 +16432,7 @@
    than replacement text when no alternative text is available and none can
    be made available, e.g. on automated image gallery sites.
 
-  <h6 id=an-image><span class=secno>4.7.2.1.6. </span>An image in an e-mail
+  <h6 id=an-image><span class=secno>4.7.2.1.7. </span>An image in an e-mail
    or document intended for a specific person who is known to be able to view
    images</h6>
 
Received on Monday, 4 August 2008 09:11:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 9 October 2008 20:32:58 GMT