Close this window

Using the <entry> tag

Description

The entry tag identifies a table cell in a row.

Example

This CNXML:


<table id="report_card" summary="The first column 
    lists each course. Each row in the second column 
    delineates a semester. The corresponding row in
    the third column shows that semester's grade.  
    The footer tallies the student's average.">
  <title>Report card</title>
  <tgroup cols="3">
    <colspec colnum="1" colname="c1" />
    <colspec colnum="2" colname="c2" />
    <colspec colnum="3" colname="c3" />
    <thead>
      <row>
        <entry>Course</entry>
        <entry>Semester</entry>
        <entry>Grade</entry>
      </row>
    </thead>
    <tfoot>
      <row>
        <entry namest="c1" nameend="c2">
          Average:
        </entry>
        <entry>85.5%</entry>
      </row>
    </tfoot>
    <tbody>
      <row>
        <entry morerows="1">Biology</entry>
        <entry>1</entry>
        <entry>86%</entry>
      </row>
      <row>
        <entry>2</entry>
        <entry>91%</entry>
      </row>
      <row>
        <entry morerows="1">English</entry>
        <entry>1</entry>
        <entry>87%</entry>
      </row>
      <row>
        <entry>2</entry>
        <entry>78%</entry>
      </row>
    </tbody>
  </tgroup>
</table>
        

Results in this display:

Table 1: Report card
Course Semester Grade
Biology 1 86%
2 91%
English 1 87%
2 78%
Average: 85.5%

Attributes(what's this?)

Children(what's this?)

para, term, cite-title, cite, foreign, emphasis, sub, sup, code, preformat, quote, note, list, media, footnote, link, newline, space, definition, example, figure, table, rule, equation, exercise, Unicode text

Parents(what's this?)

row
Close this window