Chapter 6. table tag

Table of Contents

6.1. HOW to create table
6.2. sgml program listing

6.1. HOW to create table

Table -- A formal table in a document. The tag table is used to create table. It's a little difficult to create table, so keep in mind main overview before write in sgml your table. Table reference

Table 6.1. table with data

colonne1colonne2colonne3
Decoy Power Switch

Looks just like an on-off toggle button, but only turns on a small

 
Real Power Switch

An invisible fingerprint-scanning capacitance-sensitive onoff switch.

 

First tag to use is table, just after use title tag to define the title of your table. Now you have to specify number of column: tgroup with cols="number_of_column" parameter. You can define teach column title with thead

6.2. sgml program listing

	
  <sect1>
    <title>HOW to create table</title>
    <para>
      Table -- A formal table in a document. 
      The tag <emphasis role="bold">table</emphasis> is used to create table. It's a little
      difficult to create table, so keep in mind main overview before write in sgml your table.
      <ulink url="http://www.oasis-open.org/docbook/documentation/reference/html/table.html">Table reference</ulink>
    </para>
    <table>
      <title>table with data</title>
      <tgroup  cols="3">
	<colspec colwidth="1*"></colspec>
	<colspec colwidth="1*"></colspec>
	<colspec colwidth="4*"></colspec>
	<thead>
	  <row>
	    <entry>colonne1</entry>
	    <entry>colonne2</entry>
	    <entry>colonne3</entry>
	  </row>
	</thead>
	<tbody>
	  <row>
	    <entry>Decoy Power Switch</entry>
	    <entry><para>
		Looks just like an on-off toggle button, but only turns on a small
	      </para></entry>
	  </row>
	  <row>
	    <entry><emphasis>Real</emphasis> Power Switch</entry>
	    <entry><para>
		An invisible fingerprint-scanning capacitance-sensitive onoff switch.
	      </para></entry>
	  </row>
	</tbody>
      </tgroup>
    </table>
    <para>
      First tag to use is <emphasis role="bold">table</emphasis>, just after use
      <emphasis role="bold">title</emphasis> tag to define the title of your table. Now
      you have to specify number of column: <emphasis role="bold">tgroup</emphasis> with
      <emphasis role="bold">cols="number_of_column"</emphasis> parameter. You can define
      teach column title with <emphasis role="bold">thead</emphasis>
    </para>
  </sect1>