New This website is new, your feedback will help us to improve it.

Standards & accessibility


As a public body, BAS has a responsibility to make its content available to as many people as possible.


In general, the BAS Style Kit aims to support all browsers. This means the latest, stable, releases of all major browsers, subject to any caveats below.

To reduce compatibility errors with Internet Explorer, the X-UA-Compatible header should be used to select the latest standards mode.

<meta http-equiv="x-ua-compatible" content="IE=edge">

Heads up! The Style Kit currently supports Internet Explorer 11. In the future it will only support Microsoft Edge.


The BAS Style Kit uses the HTML5 document type. This is supported by all major browsers and includes elements, attributes and technologies to provide better accessibility and progressive web applications.


The Style Kit uses CSS3 CSS standard with browser prefixing where needed.


The Style Kit uses a mobile first design, which assumes pages will be viewed on small devices (i.e. mobile phones) and then scales up to larger sizes. This is also known as responsive design.

Responsiveness is enabled in the Style Kit using the viewport meta tag, as shown below:

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

Examples of how content can change between sizes include:

  • increasing the size of fonts and images
  • organising content into grid columns to make better use of space
  • minimising or hiding navigation menus at smaller sizes

See the responsive breakpoints section for more information.


The colour contrast for text and any interactive elements should be at least 4:5:1, as recommended by the Government Digital Service and W3C.



Colours or icons should not be used alone to indicate the meaning or context of an action or notice. This information is inaccessible to, amongst others, some colour-blind users or those using assistive technologies – such as screen readers.

Instead, context should be either obvious from the content itself, or included in an additional content using the .sr-only class.

Ideally contextual colours and icons should only be needed for reinforcing meaning that is already present in text or other markup.


Where a link (<a>) element is used as a button to trigger in-page functionality, such as to collapse content, make sure to add role="button" to provide suitable context to assistive technologies.

Where a button (whether an actual button or a link element styled as such) uses the .bsk-active state, add aria-pressed="true" as well to convey this context to assistive technologies.


Where text is used to explain something on screen, for example a form field or the result of a calculation, an explicit link should be made between this text and the element.

Sighted readers will be able to infer such a link using visual cues (such as placement next to the relevant element), however this will be invisible to those using assistive technologies, such as screen readers.

For context applicable to all users, adding a aria-describedby attribute is usually enough. For context intended specifically for assistive technologies, such as to explain how items are arranged on screen, use the .sr-only.

See the form help text section for an example.


When displaying validation information, usually in the context of a user filling out a form, care should be taken not to rely on colours or icons only to provide context.

Clearly stating the reason for a validation failure or warning, with contextual colours and icons, will work best for all users.

Where possible, validation feedback should include how the user can correct their mistake, for example by enumerating valid options if there are a limited number. For forms, the aria-invalid attribute should be equal to true if a field is invalid.

See the form validation section for an example.


Pages with large numbers of navigation links, such as a navbar, should include a link to skip to the page content. This link can be hidden to non-screen readers using the
.sr-only class, and requires a page structure such as this:

<body>
  <a href="#site-content" class="sr-only">Skip to main content</a>
  ...
  <div class="container" id="site-content" tabindex="-1">
    <!-- main content -->
  </div>
</body>

These resources provide additional general, or specific, guidance: