Overview
The footer ends every page. It holds what people look for last: secondary links, contact details, social profiles, app downloads, legal notices and partner logos. Columns of links sit at the top, and a bottom bar holds the copyright, the policy links and the logos.
The footer is a page shell part. The preview shows it in a frame of its own, so it does not clash with this page’s own footer.
The main navigation belongs in the Header, and the navigation inside a section in the Side Menu.
Markup
<footer class="nds-footer nds-content-wrapper" data-theme="dark oncolor primary" role="contentinfo" aria-label="Site Footer" data-i18n-aria-label="footer.site_footer">
<nav class="nds-footer-content" aria-label="Footer navigation" data-i18n-aria-label="footer.footer_navigation">
<div class="nds-footer-column">
<span class="nds-footer-heading" id="footer-col-1">Services</span>
<ul class="nds-footer-list" aria-labelledby="footer-col-1">
<li>
<a class="nds-link nds-footer-link" href="#">
<span class="nds-label">Individuals</span>
</a>
</li>
<li>
<a class="nds-link nds-footer-link" href="#">
<span class="nds-label">Businesses</span>
</a>
</li>
</ul>
</div>
<div class="nds-footer-column">
<span class="nds-footer-heading" id="footer-col-2">Contact Us</span>
<ul class="nds-footer-list" aria-labelledby="footer-col-2">
<li>
<a class="nds-link nds-footer-link" href="tel:920000000">
<i class="nds-icon nds-hgi-headphones" aria-hidden="true"></i>
<span class="nds-label">920 000 000</span>
</a>
</li>
<li>
<a class="nds-link nds-footer-link" href="mailto:info@example.gov.sa">
<i class="nds-icon nds-hgi-mail-01" aria-hidden="true"></i>
<span class="nds-label">info@example.gov.sa</span>
</a>
</li>
<li>
<i class="nds-icon nds-hgi-location-01" aria-hidden="true"></i>
<span>King Fahd Road, Riyadh</span>
</li>
</ul>
</div>
<div class="nds-footer-column">
<span class="nds-footer-heading">Working Hours</span>
<p>Sunday to Thursday, 8 AM to 3 PM. Closed on public holidays.</p>
</div>
<div class="nds-footer-column nds-footer-icons">
<div class="nds-footer-icon-group">
<span class="nds-footer-heading" id="footer-social">Follow Us</span>
<div class="nds-footer-icon-row" role="group" aria-labelledby="footer-social">
<a class="nds-btn nds-secondary-outline nds-icon-only nds-tooltip" data-tooltip-hover="500" href="#" target="_blank" title="Follow Us on X" aria-label="Follow Us on X">
<i class="nds-icon nds-hgi-new-twitter" aria-hidden="true"></i>
</a>
<a class="nds-btn nds-secondary-outline nds-icon-only nds-tooltip" data-tooltip-hover="500" href="#" target="_blank" title="Follow Us on LinkedIn" aria-label="Follow Us on LinkedIn">
<i class="nds-icon nds-hgi-linkedin-02" aria-hidden="true"></i>
</a>
</div>
</div>
<div class="nds-footer-icon-group">
<span class="nds-footer-heading" id="footer-apps">Mobile App</span>
<div class="nds-footer-icon-row" role="group" aria-labelledby="footer-apps">
<a class="nds-btn nds-secondary-outline nds-xl nds-icon-only nds-tooltip" data-tooltip-hover="500" href="#" target="_blank" title="Apple App Store" aria-label="Apple App Store">
<i class="nds-icon nds-icon-apple" aria-hidden="true"></i>
</a>
<a class="nds-btn nds-secondary-outline nds-xl nds-icon-only nds-tooltip" data-tooltip-hover="500" href="#" target="_blank" title="Google Play Store" aria-label="Google Play Store">
<i class="nds-icon nds-icon-google-play" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
</nav>
<hr class="nds-divider nds-lg">
<div class="nds-footer-bottom">
<div class="nds-footer-meta">
<div class="nds-footer-links">
<a class="nds-link" href="#">
<span class="nds-label">Site Map</span>
</a>
<a class="nds-link" href="#">
<span class="nds-label">FAQ</span>
</a>
</div>
<div class="nds-footer-legal">
<div class="nds-footer-copyright">
<span>All Rights Reserved Ministry of Example © 2026</span>
</div>
<div class="nds-footer-policy">
<a class="nds-link" href="#">
<span class="nds-label">Privacy Policy</span>
</a>
<a class="nds-link" href="#">
<span class="nds-label">Terms and Conditions</span>
</a>
<a class="nds-link" href="#">
<span class="nds-label">Accessibility</span>
</a>
<button type="button" class="nds-link" data-cookies-toggle>
<span class="nds-label">Cookie settings</span>
</button>
</div>
</div>
</div>
<div class="nds-footer-logos">
<a href="#">
<img class="nds-oncolor" src="../assets/img/palm_swords.svg" loading="lazy" width="40" height="40" alt="Authority logo">
</a>
<a href="https://www.vision2030.gov.sa/" target="_blank">
<img class="nds-oncolor" src="../assets/img/2030-vision.svg" loading="lazy" width="60" height="40" alt="Saudi Vision 2030">
</a>
</div>
</div>
</footer>
Parts
| Part | Holds | Required |
|---|---|---|
footer.nds-footer |
The whole footer. Add nds-content-wrapper to keep its content at the page width |
Yes |
nav.nds-footer-content |
The columns | No |
.nds-footer-column |
One .nds-footer-heading and one ul.nds-footer-list of a.nds-link.nds-footer-link links. A link can start with an icon. An item can also hold plain text, such as an address, with or without an icon. A column can hold text instead of the list, such as a <p> with the working hours |
No |
.nds-footer-column.nds-footer-icons |
The social and app groups, side by side | No |
.nds-footer-icon-group |
One .nds-footer-heading and one .nds-footer-icon-row of icon buttons. An app-store button adds .nds-xl, with the mark nds-icon-apple, nds-icon-google-play or nds-icon-huawei |
No |
hr.nds-divider.nds-lg |
The line between the columns and the bottom bar | No |
.nds-footer-bottom |
.nds-footer-meta on the start side and .nds-footer-logos on the end side |
Yes |
.nds-footer-links |
A row of underlined links, such as a site map | No |
.nds-footer-legal |
.nds-footer-copyright, then .nds-footer-policy |
Yes |
.nds-footer-policy |
The policy links, not underlined: privacy, terms and accessibility. Then the button.nds-link[data-cookies-toggle] that opens the Cookies panel |
Yes |
.nds-footer-logos |
Partner and government logos, each an <img>, alone or in a link |
No |
Variants
| Group | Option | Markup | On element | Use |
|---|---|---|---|---|
| Surface | Brand (default) | [data-theme="dark oncolor primary"] |
.nds-footer |
The deep primary surface with white text, in light and dark mode. The parts inside take their on-color looks. See Color Areas. .nds-brand still works but is deprecated and goes in v3 |
| Surface | Light | — | — | Leave out the data-theme words: a light neutral surface, dark in dark mode |
| Logo | On color | — | — | Add .nds-oncolor to a one-color logo <img> so it turns white on the brand footer and in dark mode. It is a choice per logo: leave it off a logo whose colors must stay |
Built-in Features
-
Wrapping Columns
The columns share the row and wrap as space runs out: two to a row below 960px, one to a row on a phone.
-
Icons Column
The social and app groups sit side by side in one column, and take a full row below 960px.
-
Any Text
Text anywhere in the footer takes the footer's size and color, with no extra class: an address in a list, a paragraph in a column. A long word or address wraps inside its column.
-
Brand Surface
On the brand footer, every part inside takes its on-color look: the text, the headings, the dividers, the links and the buttons. No extra class is needed on them.
-
On-color Logos
A logo with
nds-oncolorturns white on the brand footer and in dark mode. -
Phone Layout
On a phone, the bottom bar stacks and centers its links, legal notices and logos.
-
CSS Only
The footer needs no script. The icon buttons' tooltips come from Tooltip.
Best Practices
- Keep to six columns or fewer. More columns make the footer long on tablets and phones.
- Put the most used links in the first column, and contact and social links last.
- Do not repeat the main navigation. The footer is for secondary pages, contact details, social profiles and legal notices.
- Start contact links with an icon (location, phone, email), so they are quick to scan.
- Always include privacy, terms and accessibility links in
.nds-footer-policy. Government sites must have them. Until a page exists, leave its link out and record it for the dev: a link to#goes nowhere. - Give every icon-only button an
aria-label, and the same text intitlefor its tooltip. - Open social profiles, app stores and other external sites in a new tab, with
target="_blank". - Keep the brand surface,
data-theme="dark oncolor primary", unless the design asks for the light footer. - Add
nds-oncoloronly to one-color logos that should turn white. A logo with brand colors stays as it is.
API
CSS Custom Properties
| Property | Default | Controls |
|---|---|---|
--background-footer |
Theme token | The deprecated .nds-brand footer’s background: the deep primary surface in light mode, a primary wash in dark mode |
--divider-color |
Theme token | The heading underline and the divider line. The brand footer sets --colors-alpha-white-10 |
Related
- Header, Main Navigation and Side Menu: the other parts of the page shell.
- Tooltip: the hover labels on the icon buttons.