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

# HTMLDocument.addDivision(3kaya)

Add a generic block

## NAME

HTMLDocument::addDivision - Add a generic block

## SYNOPSIS

**ElementTree addDivision(** *ElementTree parent, String initialtext=createString(0), String cssclass=createString(0)* **)**

## ARGUMENTS

**parent** The parent element

**initialtext** Optionally, initial text content for the element.

**cssclass** Optionally, the CSS class to apply to the division

## DESCRIPTION

Add a generic block to the end of the specified element. Unlike paragraphs, lists, etc. this block has no defined semantics, and so is useful for grouping and styling purposes.

## 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.
