Class it_html:

/**
 * function div($args...)
 * Return a <div>...</div> element
 * Any strings in the argument list will be content of the <div>
 * Any associative arrays among the arguments will create attributes for <div>.
 * Attributes with values false or null will be omitted completely.
 * Attributes with value true can be used for boolean attributes like 'checked'
 * Attribute values will be html encoded, content values won't so you may need to use Q(). 
 * @see _tag()
 */ #:}