SYNOPSIS

Void addDocumentMetaData( HTMLDocument doc, String key, String value )

ARGUMENTS

doc The HTML document

key The key name for the meta-data value

value The meta-data value

DESCRIPTION

Adds a meta-data key/value pair to the document. This can be used to add additional information to the document useful to automated tools. The use of this data in the ranking algorithms of internet search engines has been widely debated but appears to be marginal at best. It may, however, be useful for local search engines or cataloguing software.

  • addDocumentMetaData(doc,"Author","John Smith"); addDocumentMetaData(doc,"Description","An example document");

"HTTP-equiv" meta-data is not supported by this module - just add a real HTTP header using HTMLDocument.addHTTPHeader (3kaya) instead.

AUTHORS

Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). 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.MetaData (3kaya)

HTMLDocument.addHTTPHeader (3kaya)