All XHTML components are derived from org.zkoss.zhtml.impl.AbstractTag.

An XHTML component is a thin wrapper that encapsulates a native HTML tag. It is different to a XUL component or other none-native component in several ways.

  • By implementing the org.zkoss.zk.ui.ext.RawId interface, the universal identifier, getUuid, is the same as the identifier getId
  • By implementing the org.zkoss.zk.ui.ext.DynamicAttributes interface, all XHTML components support arbitrary attributes. In other words, any attribute name is legal (as long as the targeted browser supports)

Notice that the HTML component set is one of the approaches to use HTML tags directly in a ZUML document. In most cases, it is not the best approach. For information please refer to ZK Developer’s Reference: HTML tags.