---
name: "HTMLDocument.initialiseTable"
section: "3kaya"
platform: "linux"
package: "kaya"
version: "0.4.4-6.2"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/HTMLDocument.initialiseTable"
---

# HTMLDocument.initialiseTable(3kaya)

Create a table and initialise contents

## NAME

HTMLDocument::initialiseTable - Create a table and initialise contents

## SYNOPSIS

**ElementTree initialiseTable(** *ElementTree parent, InitialTableData itd, String caption=createString(0)* **)**

## ARGUMENTS

**parent** The parent element

**itd** The **HTMLDocument.InitialTableData (3kaya)**

**caption** Optionally, a caption for the table

## DESCRIPTION

Creates a table with the sections, rows, columns and cells described in the **itd**  parameter - see the **HTMLDocument.InitialTableData (3kaya)** documentation for more details. Cells will be created as data cells by default, except for cells in the header section, which will be created as header cells.

## AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others (kaya@kayalang.org). For further information see http://kayalang.org/

## LICENSE

The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.

## RELATED

**HTMLDocument.InitialTableData (3kaya)**

**HTMLDocument.addTable (3kaya)**

**HTMLDocument.lazyTable (3kaya)**

**HTMLDocument.setTableCaption (3kaya)**
