Health and Safety
Executive / Commission
Styleguide
HTML Forms are an integral part of the HSE Web standard.
A number of styles are made available to facilitate clean presentation of forms to the browswer. There are also a number of guidelines to creating accessible forms.
Pages built using the HSE Web standard have certain built-in functions that are described on the Advanced Features page.
The HSE Web standard supports 2 formats for HTML based fo -the default form style, and an hse specific "pretty" style.
The default form style is defined with no class information in the form definition:
Subsequent form elements are defined below. Notice the use of label tags for each form element - these are necessary to make your form properly accessible, but also confer usability benefits throughout.
The "pretty" form style is defined with class="formpretty" in the form definition:
Subsequent form elements are defined below. Notice the use of label tags for each form element - these are necessary to make your form properly accessible, but also confer usability benefits throughout. In Javascript enabled browsers the form elements are automatically scanned for "minor" elements (checkboxes, radio buttons etc.) and appropriate classes are applied. The effect of this in the HSE web standard is to remove unsightly borders etc. For more information see the advanced features page.