Next Previous Up Top Contents Index

WebMaker User Guide

12.12.4 Class argument to many WML functions

Many WML functions accept an optional argument named class. In particular, the HTML markup functions and HTML character markup functions accept the class argument. The class argument is a keyword argument; its syntax is: the argument's name, a colon, and the value of the argument.

For example:

address("MR", class:AD) --> "<ADDRESS CLASS=AD>MR</ADDRESS>"

You can supply the class argument to specify the name of the CSS class of the HTML elements produced by the WML function. The class argument is optional; if you do not provide it, the HTML elements will have a default class name, as described in Section 12.4, "WML support for CSS".