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

# HTMLDocument.write(3kaya)

Print a HTML document on standard output

## NAME

HTMLDocument::write - Print a HTML document on standard output

## SYNOPSIS

**Void write(** *HTMLDocument doc, UnicodeFormat uform=LiteralUTF8* **)**

## ARGUMENTS

**doc** The HTML document

**uform** The mode for handling multibyte UTF-8 characters. **LiteralUTF8**  will give a smaller String, readable in Unicode-aware applications. **NumericReference**  will give a larger String, especially if multibyte characters are very common in the text, but will work better if the String will later be edited in non-Unicode applications. This argument is optional, and defaults to the recommended **LiteralUTF8**  , but you may wish to use **NumericReference**  if standard output is connected to a non-Unicode terminal, for example.

## DESCRIPTION

Print the HTML document on standard output. This is considerably more efficient than **putStr(string(doc));**

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

**ElementTreeData.UnicodeFormat (3kaya)**

**HTMLDocument.HTMLDocument (3kaya)**

**HTMLDocument.string (3kaya)**

**HTMLDocument.writeTo (3kaya)**
