# Cascading Style Sheets

`hsc` has some limited support for CSS. Limited because it doesn't have a full stylesheet parser yet, which would allow syntax checks of `<STYLE>` sections. However, CSS specifications in `STYLE` attributes can be parsed, checked and merged already. The following features support CSS:

- The `<$defstyle>` tag allows to define a new style property and optionally a list of legal values therefor. Properties specified in `STYLE` attributes will be checked against this list.
- The attributes added by the `GETSIZE/S` function are CSS by default if you use XHTML mode.
- Multiple `STYLE` attributes in a single tag will be merged into one. This can simplify the writing of macros where you want to supply a few default styles and let the user pass in additional ones:

      <p STYLE="text-align:justify" STYLE?=STYLE>

- If the same CSS attribute was specified more than once for a single tag, `hsc` will issue a warning and use the value encountered last.