Page structure
Page template
How the parts of a page fit together, in the same order on every government website.
When to use
- As the starting point for every page.
When not to use
- Changing the order of the parts. People rely on finding them in the same place.
How to use
- Skip link
- Government website banner
- Header
- Main content, starting with breadcrumbs on inner pages or the hero on the homepage
- Footer
- Tab bar (phones only)
In a framework
Let GGDS put the parts in order, so a newer GGDS updates the whole frame of every page: Page in @ggds/react and @ggds/astro takes the banner's, header's and footer's details and the tabs, with the page's content inside. In Django, put your details in GGDS_SITE and {% extends "ggds/page.html" %}. npx @ggds/create --stack next (or astro, django) makes a whole website this way.
Accessibility
What GGDS does
- The page parts are landmarks in the expected order: banner, navigation, main content, footer.
- Every part fits a 320px screen and works when text is enlarged.
- The focus style is the same everywhere: a gold ring with a dark band inside it.
What you need to do
- Set the language:
<html lang="en-GB">, andlangon any passage in another language. - Use one
<h1>, at the start of the main content, and give every page a unique<title>. - Allow zooming: never add
maximum-scaleoruser-scalable=noto the viewport.
Example: Page template
<a class="ggds-skip-link" href="#main">Skip to main content</a>
<section class="ggds-banner" aria-label="Official government website">
<details class="ggds-banner__details ggds-container">
<summary class="ggds-banner__summary">
<svg class="ggds-banner__flag" viewBox="0 0 30 20" aria-hidden="true" focusable="false">
<rect class="ggds-banner__flag-red" width="30" height="6.67"/>
<rect class="ggds-banner__flag-gold" y="6.67" width="30" height="6.67"/>
<rect class="ggds-banner__flag-green" y="13.33" width="30" height="6.67"/>
<polygon class="ggds-banner__flag-star" points="15,6.8 15.73,8.99 18.04,9.01 16.19,10.39 16.88,12.59 15,11.25 13.12,12.59 13.81,10.39 11.96,9.01 14.27,8.99"/>
</svg>
<span class="ggds-banner__text">An official website of the Government of Ghana</span>
<span class="ggds-banner__toggle">How to tell</span>
</summary>
<div class="ggds-banner__content">
<div class="ggds-banner__item">
<p class="ggds-banner__heading">Check the address</p>
<p>The official address of this website is <strong>www.example.gov.gh</strong>. Most government websites end in <strong>.gov.gh</strong>, but some official websites do not. You can check it in the <a href="../../register.html">register of official government websites</a>.</p>
</div>
<div class="ggds-banner__item">
<p class="ggds-banner__heading">A padlock is not proof</p>
<p>A padlock or <strong>https://</strong> before the address means your connection to the website is private. It does not show who runs the website.</p>
</div>
<div class="ggds-banner__item">
<p class="ggds-banner__heading">We will never ask for your PIN</p>
<p>Government officials will never ask for your PIN, password or mobile money code, by phone, by SMS or on a website.</p>
</div>
</div>
</details>
</section>
<header class="ggds-header">
<div class="ggds-container ggds-header__inner">
<a class="ggds-header__identity" href="/">
<span class="ggds-header__monogram" aria-hidden="true">EA</span>
<span class="ggds-header__text">
<span class="ggds-header__name">Example Agency</span>
<span class="ggds-header__country">Republic of Ghana</span>
<span class="ggds-visually-hidden"> – home</span>
</span>
</a>
<nav class="ggds-header__nav" id="ggds-header-nav" aria-label="Main">
<ul class="ggds-header__list">
<li><a class="ggds-header__link" href="/services/" aria-current="page">Services</a></li>
<li><a class="ggds-header__link" href="/regulation/">Laws & regulations</a></li>
<li><a class="ggds-header__link" href="/news-notices/">News & notices</a></li>
<li><a class="ggds-header__link" href="/about/">About & contact</a></li>
</ul>
</nav>
<a class="ggds-header__search" href="/search/"><svg class="ggds-header__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg><span class="ggds-header__search-label">Search</span></a>
<button type="button" class="ggds-header__menu-button" aria-controls="ggds-header-nav" aria-expanded="false" hidden><svg class="ggds-header__icon ggds-header__icon--menu" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M4 6h16M4 12h16M4 18h16"/></svg><svg class="ggds-header__icon ggds-header__icon--close" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M6 6l12 12M18 6 6 18"/></svg><span class="ggds-visually-hidden">Menu</span></button>
</div>
</header>
<main class="ggds-main ggds-container" id="main" tabindex="-1">
<nav class="ggds-breadcrumbs" aria-label="Breadcrumb">
<ol class="ggds-breadcrumbs__list">
<li class="ggds-breadcrumbs__item"><a class="ggds-breadcrumbs__link" href="/">Home</a></li>
<li class="ggds-breadcrumbs__item"><a class="ggds-breadcrumbs__link" href="/services/">Services</a></li>
<li class="ggds-breadcrumbs__item" aria-current="page">Apply for a licence</li>
</ol>
</nav>
<h1>Apply for a licence</h1>
<p class="ggds-lead ggds-measure">Find out who needs a licence, what it costs and how to apply online.</p>
<div class="ggds-prose">
<h2>Before you start</h2>
<p>You will need your Ghana Card number and your business registration certificate.</p>
</div>
<p><a class="ggds-button" href="/services/licence/apply/">Start now</a></p>
</main>
<footer class="ggds-footer">
<div class="ggds-container ggds-footer__main">
<div>
<p class="ggds-footer__identity"><span class="ggds-header__monogram" aria-hidden="true">EA</span><span>Example Agency</span></p>
<p class="ggds-footer__purpose">We license telecommunications and broadcasting services and protect consumers.</p>
<address class="ggds-footer__contact">
<span>1 Example Road, Accra, Ghana · GA-000-0000</span>
<a href="mailto:info@example.gov.gh">info@example.gov.gh</a>
<span>General enquiries: +233 30 000 0000</span>
</address>
<p class="ggds-footer__more"><a href="/about/contact/">All contact details and offices</a></p>
</div>
<div class="ggds-footer__sections">
<nav class="ggds-footer__section" aria-label="Services">
<p class="ggds-footer__heading"><a href="/services/">Services</a></p>
<ul class="ggds-footer__list">
<li><a href="/services/">Find a service</a></li>
<li><a href="/services/fees/">Fees and charges</a></li>
<li><a href="/services/portals/">Application portals</a></li>
</ul>
</nav>
<nav class="ggds-footer__section" aria-label="Laws & regulations">
<p class="ggds-footer__heading"><a href="/regulation/">Laws & regulations</a></p>
<ul class="ggds-footer__list">
<li><a href="/regulation/?type=act">Laws & regulations</a></li>
<li><a href="/regulation/consultations/">Public consultations</a></li>
</ul>
</nav>
<nav class="ggds-footer__section" aria-label="About & contact">
<p class="ggds-footer__heading"><a href="/about/">About & contact</a></p>
<ul class="ggds-footer__list">
<li><a href="/about/contact/">Contact us</a></li>
<li><a href="/about/contact/#offices">Offices</a></li>
</ul>
</nav>
</div>
</div>
<div class="ggds-footer__bottom">
<ul class="ggds-container ggds-footer__bar">
<li>© 2026 Example Agency</li>
<li><a href="/accessibility/">Accessibility</a></li>
<li><a href="/privacy/">Privacy</a></li>
<li><a href="/disclaimer/">Disclaimer</a></li>
<li><a href="/sitemap/">Sitemap</a></li>
</ul>
</div>
</footer>
<nav class="ggds-tab-bar" aria-label="Quick links">
<ul class="ggds-tab-bar__list">
<li><a class="ggds-tab-bar__link" href="/"><svg class="ggds-tab-bar__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M3 11.5 12 4l9 7.5"/><path d="M5.5 9.5V20h13V9.5"/></svg><span>Home</span></a></li>
<li><a class="ggds-tab-bar__link" href="/services/" aria-current="page"><svg class="ggds-tab-bar__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><rect x="4" y="4" width="16" height="16" rx="2"/><path d="M8 9h8M8 13h8M8 17h5"/></svg><span>Services</span></a></li>
<li><a class="ggds-tab-bar__link" href="/consumer-help/complaints/"><svg class="ggds-tab-bar__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="8.5"/><path d="M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6V14"/><path d="M12 17h.01"/></svg><span>Complaints</span></a></li>
<li><a class="ggds-tab-bar__link" href="/regulation/"><svg class="ggds-tab-bar__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><path d="M12 4v16M7 20h10M5 8h14"/><path d="m5 8-2.5 6a2.5 2.5 0 0 0 5 0z"/><path d="m19 8-2.5 6a2.5 2.5 0 0 0 5 0z"/></svg><span>Laws</span></a></li>
<li><a class="ggds-tab-bar__link" href="/search/"><svg class="ggds-tab-bar__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true" focusable="false"><circle cx="11" cy="11" r="7"/><path d="m20 20-3.5-3.5"/></svg><span>Search</span></a></li>
</ul>
</nav><>
<a className="ggds-skip-link" href="#main">Skip to main content</a>
<section className="ggds-banner" aria-label="Official government website">
<details className="ggds-banner__details ggds-container">
<summary className="ggds-banner__summary">
<svg className="ggds-banner__flag" viewBox="0 0 30 20" aria-hidden="true" focusable="false">
<rect className="ggds-banner__flag-red" width="30" height="6.67" />
<rect className="ggds-banner__flag-gold" y="6.67" width="30" height="6.67" />
<rect className="ggds-banner__flag-green" y="13.33" width="30" height="6.67" />
<polygon className="ggds-banner__flag-star" points="15,6.8 15.73,8.99 18.04,9.01 16.19,10.39 16.88,12.59 15,11.25 13.12,12.59 13.81,10.39 11.96,9.01 14.27,8.99" />
</svg>
<span className="ggds-banner__text">An official website of the Government of Ghana</span>
<span className="ggds-banner__toggle">How to tell</span>
</summary>
<div className="ggds-banner__content">
<div className="ggds-banner__item">
<p className="ggds-banner__heading">Check the address</p>
<p>The official address of this website is <strong>www.example.gov.gh</strong>. Most government websites end in <strong>.gov.gh</strong>, but some official websites do not. You can check it in the <a href="../../register.html">register of official government websites</a>.</p>
</div>
<div className="ggds-banner__item">
<p className="ggds-banner__heading">A padlock is not proof</p>
<p>A padlock or <strong>https://</strong> before the address means your connection to the website is private. It does not show who runs the website.</p>
</div>
<div className="ggds-banner__item">
<p className="ggds-banner__heading">We will never ask for your PIN</p>
<p>Government officials will never ask for your PIN, password or mobile money code, by phone, by SMS or on a website.</p>
</div>
</div>
</details>
</section>
<header className="ggds-header">
<div className="ggds-container ggds-header__inner">
<a className="ggds-header__identity" href="/">
<span className="ggds-header__monogram" aria-hidden="true">EA</span>
<span className="ggds-header__text">
<span className="ggds-header__name">Example Agency</span>
<span className="ggds-header__country">Republic of Ghana</span>
<span className="ggds-visually-hidden"> – home</span>
</span>
</a>
<nav className="ggds-header__nav" id="ggds-header-nav" aria-label="Main">
<ul className="ggds-header__list">
<li><a className="ggds-header__link" href="/services/" aria-current="page">Services</a></li>
<li><a className="ggds-header__link" href="/regulation/">Laws & regulations</a></li>
<li><a className="ggds-header__link" href="/news-notices/">News & notices</a></li>
<li><a className="ggds-header__link" href="/about/">About & contact</a></li>
</ul>
</nav>
<a className="ggds-header__search" href="/search/"><svg className="ggds-header__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><circle cx="11" cy="11" r="7" /><path d="m20 20-3.5-3.5" /></svg><span className="ggds-header__search-label">Search</span></a>
<button type="button" className="ggds-header__menu-button" aria-controls="ggds-header-nav" aria-expanded="false" hidden><svg className="ggds-header__icon ggds-header__icon--menu" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><path d="M4 6h16M4 12h16M4 18h16" /></svg><svg className="ggds-header__icon ggds-header__icon--close" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><path d="M6 6l12 12M18 6 6 18" /></svg><span className="ggds-visually-hidden">Menu</span></button>
</div>
</header>
<main className="ggds-main ggds-container" id="main" tabIndex={-1}>
<nav className="ggds-breadcrumbs" aria-label="Breadcrumb">
<ol className="ggds-breadcrumbs__list">
<li className="ggds-breadcrumbs__item"><a className="ggds-breadcrumbs__link" href="/">Home</a></li>
<li className="ggds-breadcrumbs__item"><a className="ggds-breadcrumbs__link" href="/services/">Services</a></li>
<li className="ggds-breadcrumbs__item" aria-current="page">Apply for a licence</li>
</ol>
</nav>
<h1>Apply for a licence</h1>
<p className="ggds-lead ggds-measure">Find out who needs a licence, what it costs and how to apply online.</p>
<div className="ggds-prose">
<h2>Before you start</h2>
<p>You will need your Ghana Card number and your business registration certificate.</p>
</div>
<p><a className="ggds-button" href="/services/licence/apply/">Start now</a></p>
</main>
<footer className="ggds-footer">
<div className="ggds-container ggds-footer__main">
<div>
<p className="ggds-footer__identity"><span className="ggds-header__monogram" aria-hidden="true">EA</span><span>Example Agency</span></p>
<p className="ggds-footer__purpose">We license telecommunications and broadcasting services and protect consumers.</p>
<address className="ggds-footer__contact">
<span>1 Example Road, Accra, Ghana · GA-000-0000</span>
<a href="mailto:info@example.gov.gh">info@example.gov.gh</a>
<span>General enquiries: +233 30 000 0000</span>
</address>
<p className="ggds-footer__more"><a href="/about/contact/">All contact details and offices</a></p>
</div>
<div className="ggds-footer__sections">
<nav className="ggds-footer__section" aria-label="Services">
<p className="ggds-footer__heading"><a href="/services/">Services</a></p>
<ul className="ggds-footer__list">
<li><a href="/services/">Find a service</a></li>
<li><a href="/services/fees/">Fees and charges</a></li>
<li><a href="/services/portals/">Application portals</a></li>
</ul>
</nav>
<nav className="ggds-footer__section" aria-label="Laws & regulations">
<p className="ggds-footer__heading"><a href="/regulation/">Laws & regulations</a></p>
<ul className="ggds-footer__list">
<li><a href="/regulation/?type=act">Laws & regulations</a></li>
<li><a href="/regulation/consultations/">Public consultations</a></li>
</ul>
</nav>
<nav className="ggds-footer__section" aria-label="About & contact">
<p className="ggds-footer__heading"><a href="/about/">About & contact</a></p>
<ul className="ggds-footer__list">
<li><a href="/about/contact/">Contact us</a></li>
<li><a href="/about/contact/#offices">Offices</a></li>
</ul>
</nav>
</div>
</div>
<div className="ggds-footer__bottom">
<ul className="ggds-container ggds-footer__bar">
<li>© 2026 Example Agency</li>
<li><a href="/accessibility/">Accessibility</a></li>
<li><a href="/privacy/">Privacy</a></li>
<li><a href="/disclaimer/">Disclaimer</a></li>
<li><a href="/sitemap/">Sitemap</a></li>
</ul>
</div>
</footer>
<nav className="ggds-tab-bar" aria-label="Quick links">
<ul className="ggds-tab-bar__list">
<li><a className="ggds-tab-bar__link" href="/"><svg className="ggds-tab-bar__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><path d="M3 11.5 12 4l9 7.5" /><path d="M5.5 9.5V20h13V9.5" /></svg><span>Home</span></a></li>
<li><a className="ggds-tab-bar__link" href="/services/" aria-current="page"><svg className="ggds-tab-bar__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><rect x="4" y="4" width="16" height="16" rx="2" /><path d="M8 9h8M8 13h8M8 17h5" /></svg><span>Services</span></a></li>
<li><a className="ggds-tab-bar__link" href="/consumer-help/complaints/"><svg className="ggds-tab-bar__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><circle cx="12" cy="12" r="8.5" /><path d="M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6V14" /><path d="M12 17h.01" /></svg><span>Complaints</span></a></li>
<li><a className="ggds-tab-bar__link" href="/regulation/"><svg className="ggds-tab-bar__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><path d="M12 4v16M7 20h10M5 8h14" /><path d="m5 8-2.5 6a2.5 2.5 0 0 0 5 0z" /><path d="m19 8-2.5 6a2.5 2.5 0 0 0 5 0z" /></svg><span>Laws</span></a></li>
<li><a className="ggds-tab-bar__link" href="/search/"><svg className="ggds-tab-bar__icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false"><circle cx="11" cy="11" r="7" /><path d="m20 20-3.5-3.5" /></svg><span>Search</span></a></li>
</ul>
</nav>
</>Use it
- Stylesheet
core.css(1.9 KB with gzip, minified): the tokens and the layout helpers below.- JavaScript
- Optional: the GGDS script runs the header menu and the error summary.
HTML
Copy the HTML under each example above. It works in any website.
Astro
With @ggds/astro:
import Page from '@ggds/astro/Page.astro';
---
import Page from '@ggds/astro/Page.astro';
---
<Page banner={{ shortName: 'NCA', host: 'nca.org.gh', official: true }} header={{ name: 'National Communications Authority', initials: 'NCA', nav, current: Astro.url.pathname }} footer={{ name: 'National Communications Authority', sections, bar }} tabs={tabs}>
…
</Page>React and Next.js
No React component: switch the HTML under an example to JSX (React) and copy it.
Django
With ggds-django ({% load ggds %}):
{% extends "ggds/page.html" %}
{% block title %}Apply for a licence | National Communications Authority{% endblock %}
{% block content %}…{% endblock %}
{# settings.py: GGDS_SITE = {"name": "National Communications Authority", "short_name": "NCA", "host": "nca.org.gh", "nav": [...], ...} #}Classes and states
| Class | What it does |
|---|---|
.ggds-container | Centres content at the page width, with side margins that keep clear of a phone's notch. |
.ggds-main | Space above and below the main content. |
.ggds-lead | A larger opening paragraph. |
.ggds-measure | Limits text to a comfortable line length. |
.ggds-visually-hidden | Hides text on screen but keeps it for screen readers. |
.ggds-no-print | Left out when the page is printed. |
Accessibility tests
Automated, on every change
These run each time GGDS changes. A change that fails one is not accepted.
- WCAG 2.2 A and AA rules (axe), at desktop and phone widths, on every example
- No sideways scrolling on a 320px screen, also with a wide font, on every example
- Every approved colour pair meets its contrast minimum, for every institution theme
- No inline scripts or styles, so it runs under a strict Content Security Policy
- Behaviour test: “no horizontal scrolling at 320px”
- Behaviour test: “no horizontal scrolling at 320px with a wide font”
By people, with assistive technology
Automated tests find only some of the barriers people meet. These checks are still to be done.
| Check | Result | Notes |
|---|---|---|
| Keyboard only | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| NVDA screen reader with Firefox or Chrome (Windows) | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| JAWS screen reader with Chrome (Windows) | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| VoiceOver screen reader with Safari (iPhone) | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| TalkBack screen reader with Chrome (Android) | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| Zoom to 400%, and increased text spacing | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| Windows contrast themes (forced colours) | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
| Voice control (Voice Access or Dragon) | Not tested yet | Waiting for the external audit with disabled people (decision D-09). |
Changes
| Version | Change |
|---|---|
| 0.4.0 | New: the starter in your framework. npx @ggds/create --stack next, --stack astro or --stack django (and "What your website is made with" in the builder) makes the same website as a Next.js, Astro or Django project, with the same pages, settings and hosting files. The parts around every page come from that framework's new Page component, so a newer GGDS package updates them; the words of each page are GGDS markup, ready to edit. Every page of every framework is rendered in the tests and checked, element by element, against the plain HTML starter. Plain HTML stays the default and makes exactly the same files as before. |
| 0.4.0 | New: page template components: Page in React and Astro, and ggds/page.html in Django ({% extends "ggds/page.html" %}, with your details in GGDS_SITE and ggds_django.context_processors.site). They put the skip link, banner, header, <main id="main">, footer and tab bar in GGDS's order, so a newer GGDS updates the whole frame of a page. React's is a server component; only the header runs in the browser. Django's {% ggds_tab_bar %} takes current= to mark a tab, as the header already did. |
| 0.1.0 | ggds-container keeps clear of a phone's notch in landscape. |
| 0.1.0 | Added. |
Related components
Something wrong, unclear or missing? or suggest a change to it on GitHub. You need a GitHub account.