Kaya 0.5.2 reference for HTMLDocument::addDocumentMetaData

List of functions and data types in HTMLDocument

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

Arguments

Usage

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 addHTTPHeader instead.

Related

kaya@kayalang.org | Last modified 29 November 2011 | Supported by Durham CompSoc | Powered by Kaya