Cardiff Council Content and design system

www.cardiff.gov.uk

Design

tools

Accessibility tools

style

ColoursFontHeadingsWhitespaceCardiff Council LogoLinksWard translations

layout

Button (Forms)Notice blockHighlight informationAccordionsTabsTilesTablesPage wrap

Links

Links allow users to click their way from page to page, or to download files.

How to use this component

Links can be set up by using the anchor tag.

All links should be descriptive. Never use words like “click here”, “open link”, “read more”. For more information on this see our links accessibility guide.

  • All links should change appearence once hovered or focused to give visual indication for keyboard or other accessible navigation.
  • If a link is within page text then the link should be obvious. They should be underlined and be a different colour to the main text.
  • If the link needs to open in a new windor, inside the link should be a hidden line of text for screen readers to inform the user that the link opens in a new window.
  • If a link is pointing to a file download then we should show the file size within the link following a standard convention as shown in the examples below.

Code Resource

Example of a <a href="#" class="">link within some</a> normal text.

<br>
<br>


<a href="#" class="">A link to a file download (5 MB PDF)</a>

<br><br>

<a title="Download a Direct Debit application form" class="" href="#">Download a Direct Debit application form to return by post (189 KB PDF)</a>

Working Example

Example of a link within some normal text.

A link to a file download (5 MB PDF)

Download a Direct Debit application form to return by post (189 KB PDF)