Most elements within documents allow for the specification of
type attributes. The
type attribute is
used to add semantic tags to elements that can be interpreted by renderers in various ways. Typically,
the
type attribute is translated directly to a
CSS class. The attributes can
also be consumed by document processors that are trying to extract other semantic information
from documents. For example, in this documentation, the term
xstructural
is always expressed as a
Term element
with a
type attribute set to
package. This
is intended to indicate to a document processor that the term means "a software package named xstructural".
Document authors that are not interested in semantic information can use the
type attribute purely for formatting, or alternatively can ignore it entirely.