john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

html table example

<TABLE border="1"
          summary="This table gives some statistics about fruit
                   flies: average height and weight, and percentage
                   with red eyes (for both males and females).">
<CAPTION><EM>A test table with merged cells</EM></CAPTION>
<TR><TH rowspan="2"><TH colspan="2">Average
    <TH rowspan="2">Red<BR>eyes
<TR><TH>height<TH>weight
<TR><TH>Males<TD>1.9<TD>0.003<TD>40%
<TR><TH>Females<TD>1.7<TD>0.002<TD>43%
</TABLE>

 summary     %Text;         #IMPLIED  -- purpose/structure for speech output--
  width       %Length;       #IMPLIED  -- table width --
  border      %Pixels;       #IMPLIED  -- controls frame width around table --
  frame       %TFrame;       #IMPLIED  -- which parts of frame to render --
  rules       %TRules;       #IMPLIED  -- rulings between rows and cols --
  cellspacing %Length;       #IMPLIED  -- spacing between cells --
  cellpadding %Length;       #IMPLIED  -- spacing within cells --


<table   style="text-align:center;border-collapse:separate;border-spacing:5px;background:white;" cellpadding=5px align=left width=70% >

        <caption> Top Caption Goes Here </caption>

      <tr style="font-weight:bold; text-align:center; background:whitesmoke;">

        <th width=12.5% ></th>

        <th width=12.5% >January</th>



      </tr>

      <tr style="background:lightgrey;">

        <td align=left>North</td>

        <td> 4</td>

        <td> 32</td>


        <td> '''65'''</td>

      </tr>

      <tr style="background:whitesmoke;">

        <td align=left>East</td>

        <td> 1</td>

        <td> 0</td>

        <td> 10</td>

      </tr>

      <tr style="background:lightgrey;">

        <td align=left>West</td>

        <td> 6</td>

        <td> 7</td>

        <td> '''51'''</td>

      </tr>

      <tr style="background:whitesmoke;">

        <td align=left>South</td>

        <td> 4</td>

        <td> 22</td>

        <td> 23</td>

        <td> '''81'''</td>

      </tr>

      <tr style="background:lightgrey;">

        <td align=left>'''Total'''</td>

        <td> '''15'''</td>

        <td> '''61'''</td>

      </tr>

      </table>

  • « display server info
  • swing form example no listener »

Published

Jul 1, 2011

Category

web

~167 words

Tags

  • example 36
  • html 23
  • table 5
  • web 56