Short URL: http://html5.org/r/1976
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 1976 | 2008-08-04 09:10 |
Index: source =================================================================== --- source (revision 1975) +++ source (revision 1976) @@ -13717,7 +13717,30 @@ </div> + <h6>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> + + <p>In such cases, the <code title="attr-img-alt">alt</code> + attribute must be present but must consist of the same text as + written in the image itself.</p> + + <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><h1><img src="earthdayheader.png" alt="Earth Day"></h1></pre> + + </div> + + + <h6>A graphical representation of some of the surrounding text</h6> <p>In many cases, the image is actually just supplementary, and