# XForms/Best practice

This cookbook identifies example programs that demonstrate best
practices. An XForms Best Practice is a specific way of solving a
general problem that has been selected from among posible solutions by
various authors. There are a variety of reasons for best practices but
in general best practices increase program modularity, maintainability
and flexibility.

The following logo will appear next to sample programs that constitute a
best practice:
![](XForms-best-practice.jpg "XForms-best-practice.jpg"){width="50"}.

These should also be some reason in each example why this solution is
usually preferred by developers over other solutions as well as give
some indication of why this may not be appropriate in some situations.

Although a best practice is usually the preferred way of solving a given
problem, it is not always the right choice for all circumstances. For
example developers frequently put a style sheet in an external file but
if you are doing training and want the example to contain the CSS file,
there are good reasons to put the CSS file directly in the html header.

