CSS attributes
All TQTXWidgets have methods for reading, writing and working with attributes. An attribute is a value that is tied to the HTML tag itself, like the ID (name) of an element. All elements have an ID attribute as well as others that can be specific to the tag type. Attribute methods are exposed via the Attributes property, which is an interface.
Example of an attribute in HTML:
<DIV ID="panel1">
</DIV>
Above you see a typical tag definition that initialize the ID attribute with a value. The ID attribute functions as the name of an element. Our runtime-library maps this attribute directly to TQTXWidget's name property. Most intrinsic attributes are exposed as object pascal properties in the runtime-library.