kytschBASIC

Put down that phone!
Please view me on real computer.

TABLE

Creating a table.

Example

TABLE

	THEAD

		TROW

			THEADCELL

				PRINT "Table header 1"

			END THEADCELL

			THEADCELL

				PRINT "Table header 2"

			END THEADCELL

		END TROW

	END THEAD

	TBODY

		TROW

			TCELL

				PRINT "Table cell 1"

			END TCELL

			TCELL

				PRINT "Table cell 2"

			END TCELL

		END TROW

	END TBODY

	TFOOT

		TROW

			TCELL

				PRINT "Table footer cell 1"

			END TCELL

			TCELL

				PRINT "Table footer cell 2"

			END TCELL

		END TROW

	END TFOOT

END TABLE

Output

Table header 1 Table header 2
Table cell 1 Table cell 2
Table footer cell 1 Table footer cell 2

Source

<table>

	<thead>

		<tr>

			<th>

				<span>Table header 1</span>

			</th>

			<th>

				<span>Table header 2</span>

			</th>

		</tr>

	</thead>

	<tbody>

		<tr>

			<td>

				<span>Table cell 1</span>

			</td>

			<td>

				<span>Table cell 2</span>

			</td>

		</tr>

	</tbody>

	<tfoot>

		<tr>

			<td>

				<span>Table footer cell 1</span>

			</td>

			<td>

				<span>Table footer cell 2</span>

			</td>

		</tr>

	</tfoot>

</table>

See also