kytschBASIC

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

TABLE

Creating a table.

Example

TABLE
	THEAD
		TROW
			THEADCELL
				PRINT "Table header 1"
			THEADCELL CLOSE
			THEADCELL
				PRINT "Table header 2"
			THEADCELL CLOSE
		TROW CLOSE
	THEAD CLOSE
	TBODY
		TROW
			TCELL
				PRINT "Table cell 1"
			TCELL CLOSE
			TCELL
				PRINT "Table cell 2"
			TCELL CLOSE
		TROW CLOSE
	TBODY CLOSE
	TFOOT
		TROW
			TCELL
				PRINT "Table footer cell 1"
			TCELL CLOSE
			TCELL
				PRINT "Table footer cell 2"
			TCELL CLOSE
		TROW CLOSE
	TFOOT CLOSE
TABLE CLOSE

Output

Table header 1 Table header 2
Table cell 1Table cell 2
Table footer cell 1Table 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