W3C home > Mailing lists > Public > www-html-editor@w3.org > April to June 2005

[XHTML 2] Embedding Attributes Examples

From: Jim Ley <jim@jibbering.com>
Date: Sat, 28 May 2005 22:01:49 +0100
Message-ID: <010e01c563c8$77522b90$0a00000a@Snufkin>
To: <www-html-editor@w3.org>
Cc: <xhtml2-issues@hades.mn.aptest.com>

Dear HTML Working Group,

The Example

<table src="temperature-graph.png" srctype="image/png">
<caption>Average monthly temperature over the last 20 years</caption>
<tr><th>Jan</th><th>Feb</th><th>Mar</th><th>Apr</th><th>May</th><th>Jun</th>
    <th>Jul</th><th>Aug</th><th>Sep</th><th>Oct</th><th>Nov</th><th>Dec</th>
</tr>
<tr><td> 4</td><td> 2</td><td> 7</td><td> 9</td><td>13</td><td>16</td>
    <td>17</td><td>17</td><td>14</td><td>11</td><td> 7</td><td> 4</td>
</tr>
</table>

Is poorly chosen, as it cannot be styled in a way appropriate to both a 
raster PNG and a table, please change the example to something more 
appropriate:

<img src="temperature-graph.png" srctype="image/png">
<table>
<caption>Average monthly temperature over the last 20 years</caption>
<tr><th>Jan</th><th>Feb</th><th>Mar</th><th>Apr</th><th>May</th><th>Jun</th>
    <th>Jul</th><th>Aug</th><th>Sep</th><th>Oct</th><th>Nov</th><th>Dec</th>
</tr>
<tr><td> 4</td><td> 2</td><td> 7</td><td> 9</td><td>13</td><td>16</td>
    <td>17</td><td>17</td><td>14</td><td>11</td><td> 7</td><td> 4</td>
</tr>
</table>
</img>

This can then be styled, and is not confusing to people who may feel the 
current example is suitable for use in real documents.

Regards,

Jim Ley 
Received on Saturday, 28 May 2005 21:02:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:54 GMT