Skip to main content

Code implementation

  1. Do not code lists as tables

    Using tables instead of definition lists creates noise for screen reader users.

  2. Do not forget link focus states

    Links must be distinct when focused and with sufficient colour contrast. This can get missed if manually rebuilding GOV.UK Frontend manually (for example if using a Javascript framework) or using an old version of GOV.UK Frontend.

  3. Do not omit autocomplete attributes on input fields

    If you are asking for fields that people regularly complete, autocomplete helps them save time by helping their web browser guess the response.

  4. Do not use links in aria-described areas like hint text

    Areas of GOV.UK component that use aria-described such as hint text are designed to be a single paragraph of text. Changing this can cause accessibility issues.