Page template


Use this template to keep your pages consistent with the rest of ros.gov.uk.

This page template combines the boilerplate markup and components needed for a basic ros.gov.uk page. It includes the skip link, header, phase banner, breadcrumbs or back link (optional), error summary (optional) and footer components.

The main region of the page should only contain content - so not the phase banner, breadcrumb or back navigation. The first child should either be an h1 or the error summary component (which should appear above the h1 if shown). This helps avoid clutter for assistive technology users.

Deafult template

Contents

<!DOCTYPE html>
<html lang="en" class="govuk-template">
  <head>
    <meta charset="utf-8">
    <title>Page Title - Service Title - Registers of Scotland</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="shortcut icon" sizes="16x16 32x32 48x48" href="/assets/images/favicon.ico" type="image/x-icon">
    <!-- stylesheets, javascript etc -->
  </head>
  <body class="govuk-template__body">
    <!-- Skip to main content - should link to main id -->
    <a href="#main-content" class="govuk-skip-link">Skip to main content</a>

    <!-- Header -->
    <header class="govuk-header">
      <div class="govuk-header__container govuk-width-container">
        <div class="govuk-header__logo">
          <a href="/" class="govuk-link govuk-header__link govuk-header__link--homepage" aria-label="Go to homepage." id="header-logo-homepage-link" data-testid="header-logo-homepage-link">
            <svg height="45" role="presentation" viewBox="0 0 259 91" width="129" xmlns="http://www.w3.org/2000/svg" class="govuk-!-display-block">
              <title></title>
              <g fill="currentColor" fill-rule="evenodd"><g><path d="M23.85 30.749l14.086 14.258-14.086 14.26V51.9C10.65 51.692 0 40.798 0 27.386 0 13.846 10.842 2.871 24.22 2.871c5.564 0 10.689 1.9 14.78 5.092a28.453 28.453 0 00-6.2 10.558 12.139 12.139 0 00-8.58-3.544c-6.774 0-12.262 5.554-12.262 12.409 0 6.725 5.296 12.2 11.892 12.406v-9.043"></path><path d="M41.929 40.929l-14.088-14.26h7.278c.202-13.36 10.967-24.143 24.216-24.143 13.377 0 24.22 10.977 24.22 24.516 0 5.633-1.873 10.82-5.03 14.961a27.93 27.93 0 00-10.43-6.275 12.443 12.443 0 003.502-8.686c0-6.854-5.488-12.411-12.262-12.411-6.644 0-12.053 5.363-12.257 12.038h8.937z"></path><path d="M60.044 59.226l-14.088-14.26 14.088-14.258v7.364c13.201.209 23.853 11.105 23.853 24.515 0 13.539-10.844 24.518-24.222 24.518a23.929 23.929 0 01-14.78-5.095 28.398 28.398 0 006.198-10.558 12.145 12.145 0 008.582 3.547c6.774 0 12.262-5.557 12.262-12.412 0-6.725-5.296-12.2-11.893-12.407v9.046"></path><path d="M27.88 63.305l14.087-14.259 14.086 14.259h-7.276c-.206 13.361-10.968 24.144-24.219 24.144C11.182 87.449.34 76.472.34 62.934c0-5.634 1.874-10.824 5.03-14.962a27.946 27.946 0 0010.431 6.273 12.445 12.445 0 00-3.503 8.689c0 6.852 5.489 12.408 12.263 12.408 6.643 0 12.052-5.36 12.256-12.037H27.88"></path></g><path d="M106.208 29.18h1.47c1.409 0 2.43-.36 3.03-.99.569-.57.839-1.41.839-2.46 0-.93-.239-1.62-.719-2.1-.63-.63-1.62-.87-3.18-.87h-1.44zm1.02-9.9c3.39-.03 5.64.42 7.199 2.04.96.99 1.5 2.46 1.5 4.35 0 2.82-1.319 4.86-3.719 6.118l.69 1.26c1.8 3.271 3.239 5.43 4.59 7.231.269.36.12.6-1.17.6h-1.651c-1.019 0-1.439-.03-1.859-.45-.75-.81-1.83-2.55-3.69-6l-.991-1.83h-1.919v7.83c0 .36-.45.45-2.04.45h-.33c-1.68 0-1.98-.09-1.98-.45v-20.7c0-.39.181-.45 1.35-.45zM129.041 31.43c-.181-1.86-1.111-3.24-2.791-3.24-1.65 0-2.73 1.228-3.12 3.24zm-5.911 2.94c.33 2.128 1.68 3.298 3.959 3.298 1.471 0 2.881-.389 4.231-.96.33-.15.48-.03.81.871l.27.75c.36 1.02.33 1.2-.029 1.41-1.5.84-3.721 1.44-5.821 1.44-4.71 0-7.71-2.94-7.71-8.04 0-4.92 2.79-8.4 7.38-8.4 4.56 0 6.93 3.39 6.93 8.07 0 1.17-.061 1.56-.3 1.56zM145.75 30.11c-.661-1.232-1.68-1.83-2.73-1.83-2.01 0-3.239 1.56-3.239 4.8 0 2.878 1.109 4.378 3.3 4.378.839 0 1.799-.299 2.25-.78.329-.359.419-.84.419-1.619zm2.31-5.072c1.17 0 1.41.031 1.529.361.271.78.271 3.72.271 6.33v7.86c0 2.91-.63 4.98-1.83 6.3-1.23 1.35-3.06 1.98-5.489 1.98-1.8 0-3.81-.54-5.01-1.23-.3-.18-.391-.39.09-1.53l.21-.51c.419-.99.599-1.23.929-1.08 1.05.48 2.37.87 3.54.87 2.22 0 3.45-1.14 3.45-4.35v-.45c-1.02.87-2.37 1.35-3.84 1.35-3.929 0-6.36-2.94-6.36-7.86.031-5.31 2.79-8.34 6.571-8.34 1.62 0 3 .78 3.989 1.86.03-.3.181-1.08.24-1.23.09-.21.09-.33 1.41-.33zM156.1 25.038c1.77 0 1.95.121 1.95.451v14.94c0 .33-.18.45-1.95.45h-.15c-1.95 0-2.01-.12-2.01-.45v-14.94c0-.33.06-.45 2.01-.45zm-.18-7.319c1.44 0 2.52 1.14 2.52 2.46s-1.08 2.46-2.52 2.46-2.52-1.14-2.52-2.46 1.08-2.46 2.52-2.46zM161.919 37.49c.51-.902.781-1.17 1.111-.932 1.17.78 2.58 1.29 3.839 1.29 1.59 0 2.52-.6 2.52-1.408 0-2.34-7.68-.901-7.68-6.63 0-3.15 2.701-5.07 6.21-5.07 1.981 0 3.691.54 4.95 1.5.3.209.241.45-.36 1.469l-.269.42c-.54.93-.75 1.08-1.08.87-.96-.6-1.89-.96-3.061-.96-.869 0-1.559.18-1.949.51-.271.24-.42.51-.42.87 0 2.25 7.68 1.08 7.68 6.48 0 1.38-.571 2.7-1.531 3.63-1.11 1.08-2.76 1.65-4.95 1.65-2.31 0-4.349-.75-5.579-1.8-.24-.21-.211-.48.269-1.35l.3-.54M179.53 20.72c1.769 0 1.949.12 1.949.45v3.868h3.57c.27 0 .39.061.39 1.5v.21c0 1.441-.12 1.5-.39 1.5h-3.57v7.411c0 .87.15 1.35.511 1.68.3.27.75.42 1.319.42.481 0 1.021-.12 1.56-.3.3-.09.45.09.78 1.2l.091.3c.329 1.11.3 1.29-.061 1.47-.961.48-2.28.75-3.45.75-1.68 0-2.85-.45-3.63-1.23-.84-.84-1.23-2.1-1.23-4.05v-7.65h-2.07c-.269 0-.389-.06-.389-1.5v-.21c0-1.44.12-1.5.389-1.5h2.07v-3.87c0-.33.06-.45 2.01-.45h.151M197.95 31.43c-.18-1.86-1.111-3.24-2.79-3.24-1.65 0-2.73 1.228-3.12 3.24zm-5.91 2.94c.329 2.128 1.68 3.298 3.96 3.298 1.468 0 2.879-.389 4.23-.96.329-.15.479-.03.81.871l.269.75c.36 1.02.33 1.2-.029 1.41-1.5.84-3.72 1.44-5.821 1.44-4.709 0-7.709-2.94-7.709-8.04 0-4.92 2.79-8.4 7.379-8.4 4.561 0 6.93 3.39 6.93 8.07 0 1.17-.059 1.56-.3 1.56zM207.16 25.038c1.469 0 1.74.061 1.83.391.09.27.3 1.89.36 3.09.96-2.46 2.22-3.78 4.14-3.78.3 0 .57.03.78.12.21.09.27.15.27 1.5v.42c0 1.53-.09 1.59-.421 1.62-1.679.15-2.729.87-3.509 2.04-.75 1.14-1.11 2.85-1.11 5.67v4.32c0 .33-.18.45-1.95.45h-.15c-1.95 0-2.01-.12-2.01-.45v-8.28c0-2.34-.09-4.95-.21-6.57-.03-.42.09-.54 1.8-.54h.18M216.968 37.49c.512-.902.782-1.17 1.112-.932 1.17.78 2.58 1.29 3.839 1.29 1.59 0 2.52-.6 2.52-1.408 0-2.34-7.68-.901-7.68-6.63 0-3.15 2.7-5.07 6.209-5.07 1.982 0 3.692.54 4.951 1.5.299.209.24.45-.36 1.469l-.269.42c-.54.93-.75 1.08-1.081.87-.959-.6-1.89-.96-3.06-.96-.869 0-1.56.18-1.949.51-.271.24-.42.51-.42.87 0 2.25 7.679 1.08 7.679 6.48 0 1.38-.57 2.7-1.53 3.63-1.11 1.08-2.76 1.65-4.95 1.65-2.31 0-4.35-.75-5.579-1.8-.24-.21-.21-.48.269-1.35l.299-.54M106.088 65.18c0 2.91.96 4.56 3.06 4.56 2.37 0 3.39-1.8 3.39-4.8 0-2.908-.96-4.56-3.06-4.56-2.37 0-3.39 1.8-3.39 4.8zm10.68-.42c0 5.43-2.7 8.52-7.71 8.52-4.47 0-7.2-2.73-7.2-7.92 0-5.43 2.7-8.52 7.71-8.52 4.47 0 7.2 2.731 7.2 7.92zM120.847 57.14v-.72c0-2.189.601-3.869 1.681-4.979 1.02-1.05 2.49-1.56 4.319-1.56 1.111 0 2.311.21 3.301.57.269.09.299.33.06 1.38l-.121.51c-.24 1.05-.39 1.23-.629 1.17-.69-.15-1.291-.24-1.92-.24-.96 0-1.621.24-2.01.78-.39.54-.57 1.38-.57 2.49v.6h3.45c.27 0 .389.06.389 1.5v.21c0 1.44-.119 1.5-.389 1.5h-3.45v12.18c0 .33-.18.45-1.95.45h-.15c-1.95 0-2.011-.12-2.011-.45V60.35h-2.099c-.27 0-.39-.06-.39-1.5v-.21c0-1.44.12-1.5.39-1.5h2.099M150.876 54.951c-.539 1.11-.718 1.17-1.079.93-1.32-.81-2.339-1.26-3.719-1.26-1.71 0-2.821 1.02-2.821 2.43 0 1.53 1.651 2.28 3.361 3.15 2.579 1.32 5.429 2.79 5.429 6.57 0 3.81-2.46 6.51-7.29 6.51-2.609 0-5.009-.87-6.449-2.04-.391-.33-.42-.66.09-1.65l.36-.72c.51-.96.78-1.2 1.17-.93 1.44 1.02 3 1.71 4.56 1.71 1.95 0 3.24-.9 3.24-2.55 0-1.86-1.71-2.58-3.511-3.48-2.519-1.23-5.279-2.67-5.279-6.21 0-4.02 3.18-6.33 6.93-6.33 2.009 0 3.99.57 5.429 1.59.45.33.39.63-.12 1.68l-.301.6M166.987 60.68c-.57 1.08-.81 1.08-1.08.9-1.08-.75-2.04-1.17-3.329-1.17-2.04 0-3.75 1.35-3.75 4.56 0 3.03 1.319 4.74 3.929 4.74 1.23 0 2.19-.33 3.33-.87.36-.18.45-.06.96 1.11l.179.42c.451 1.05.421 1.23.15 1.41-1.229.84-3.088 1.5-5.159 1.5-2.16 0-3.99-.63-5.25-1.8-1.53-1.41-2.37-3.6-2.37-6.3 0-2.58.78-4.739 2.191-6.21 1.319-1.349 3.179-2.13 5.639-2.13 1.92 0 3.75.66 5.1 1.771.33.27.27.51-.24 1.5l-.3.57M173.797 65.18c0 2.91.96 4.56 3.06 4.56 2.369 0 3.39-1.8 3.39-4.8 0-2.908-.96-4.56-3.06-4.56-2.37 0-3.39 1.8-3.39 4.8zm10.679-.42c0 5.43-2.699 8.52-7.709 8.52-4.47 0-7.2-2.73-7.2-7.92 0-5.43 2.7-8.52 7.71-8.52 4.47 0 7.199 2.731 7.199 7.92zM190.626 52.822c1.771 0 1.95.12 1.95.45v3.869h3.571c.27 0 .39.06.39 1.5v.21c0 1.44-.12 1.5-.39 1.5h-3.571v7.41c0 .87.15 1.35.511 1.68.3.27.75.42 1.319.42.481 0 1.021-.12 1.561-.3.3-.09.45.09.78 1.2l.09.3c.33 1.11.3 1.29-.06 1.47-.96.48-2.28.75-3.451.75-1.679 0-2.85-.45-3.629-1.23-.84-.84-1.23-2.1-1.23-4.05v-7.65h-2.07c-.271 0-.39-.06-.39-1.5v-.21c0-1.44.119-1.5.39-1.5h2.07v-3.87c0-.33.06-.45 2.009-.45h.15M201.637 50.181c1.71 0 1.919.09 1.981.39.179.87.269 4.68.269 8.73v9.54c0 .69.239 1.02.989 1.02h.362c.269 0 .3.21.3 1.32v.27c0 1.08-.031 1.2-.271 1.32-.449.21-1.229.36-2.01.36-1.08 0-1.949-.33-2.519-.9-.72-.72-.961-1.74-.961-3.15V58.67c0-2.85-.151-7.02-.239-8.1-.031-.33 0-.39 1.95-.39h.149M217.835 61.85c-.568-.87-1.558-1.44-2.609-1.44-2.189 0-3.209 1.742-3.209 4.832 0 2.668.72 4.588 3.15 4.588.959 0 1.83-.36 2.25-.9.33-.42.418-.96.418-1.68zm.482-4.319c.03-.27.149-.39 1.768-.39h.182c1.529 0 1.738.09 1.738.42 0 .99-.058 4.02-.058 6.48v1.83c0 2.34.09 4.95.209 6.57.031.42 0 .54-1.709.54h-.151c-1.47 0-1.711-.06-1.83-.39-.09-.18-.149-.66-.211-1.02-.898 1.02-2.578 1.71-4.108 1.71-3.93 0-6.359-3-6.359-7.92 0-5.46 3.029-8.52 6.629-8.52 1.62 0 3.088.78 3.78 1.77zM227.767 57.14c1.47 0 1.738.061 1.859.391.09.27.151.75.209 1.2.961-1.11 2.522-1.89 4.35-1.89 1.831 0 3.272.6 4.171 1.62.99 1.11 1.41 2.55 1.41 4.83v9.24c0 .33-.181.45-1.95.45h-.149c-1.951 0-2.011-.12-2.011-.45v-8.1c0-2.07-.119-2.7-.6-3.24-.389-.45-1.139-.69-2.01-.69-.689 0-1.47.15-2.009.48-.631.39-.782.87-.84 1.59-.061.69-.061 1.8-.061 2.94v7.02c0 .33-.179.45-1.949.45h-.15c-1.952 0-2.01-.12-2.01-.45v-8.28c0-2.34-.09-4.95-.21-6.57-.03-.42.089-.54 1.8-.54h.15M252.935 61.76c-.75-.898-1.648-1.38-2.699-1.38-2.19 0-3.239 1.741-3.239 4.92 0 1.77.42 2.91 1.019 3.6.54.63 1.41.87 2.249.87.84 0 1.801-.3 2.25-.78.331-.36.42-.84.42-1.618zm2.161-11.578c1.769 0 1.95.12 1.95.45V68.96c0 .662.27.84.871.84.359 0 .389.15.389 1.23v.33c0 1.05-.06 1.29-.271 1.38-.538.21-1.35.36-2.159.36-1.32 0-2.22-.6-2.611-1.5-1.018 1.08-2.518 1.68-4.169 1.68-3.929 0-6.329-3.06-6.329-7.98 0-5.308 2.67-8.46 6.6-8.46 1.409 0 2.58.481 3.568 1.351v-7.56c0-.33.062-.45 2.011-.45z"></path></g>
            </svg>
          </a>
        </div>
        <div class="govuk-header__content rosgovuk-!-hidden-print">
          <span class="govuk-header__subtext">Service name</span>
        </div>
      </div>
    </header>

    <!-- Phase banner (optional) -->
    <aside class="govuk-width-container">
      <div class="govuk-phase-banner">
        <p class="govuk-phase-banner__content">
          <strong class="govuk-tag govuk-phase-banner__content__tag">alpha</strong>
          <span class="govuk-phase-banner__text">
            This is a new service – your <a class="govuk-link" href="#">feedback</a> will help us to improve it.
          </span>
        </p>
      </div>
    </aside>

    <!-- Width wrapper -->
    <div class="govuk-width-container app-width-container">

      <!-- Back link or Breadcrumb (optional) -->
      <nav aria-label="Back">
        <a href="#" class="govuk-back-link">Back</a>
      </nav>

      <!-- Main content -->
      <main class="govuk-main-wrapper " id="main-content" role="main">

        <!-- Error Summary (optional) -->
        <div class="govuk-error-summary" aria-labelledby="error-summary-title" role="alert" tabindex="-1" data-module="govuk-error-summary">
          <h2 class="govuk-error-summary__title" id="error-summary-title">
            There is a problem
          </h2>
          <div class="govuk-error-summaappripriatery__body">
            <ul class="govuk-list govuk-error-summary__list">
              <li>
                <a href="#passport-issued-error">The date your passport was issued must be in the past</a>
              </li>
            </ul>
          </div>
        </div>

        <h1 class="govuk-heading-xl">Default page template</h1>
      </main>
    </div>

    <!-- Footer -->
    <footer class="govuk-footer " role="contentinfo">
      <div class="govuk-width-container ">
        <div class="govuk-footer__meta">
          <div class="govuk-footer__meta-item govuk-footer__meta-item--grow">

            <svg aria-hidden="true" focusable="false" class="govuk-footer__licence-logo" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 483.2 195.7" height="17" width="41">
              <path fill="currentColor" d="M421.5 142.8V.1l-50.7 32.3v161.1h112.4v-50.7zm-122.3-9.6A47.12 47.12 0 0 1 221 97.8c0-26 21.1-47.1 47.1-47.1 16.7 0 31.4 8.7 39.7 21.8l42.7-27.2A97.63 97.63 0 0 0 268.1 0c-36.5 0-68.3 20.1-85.1 49.7A98 98 0 0 0 97.8 0C43.9 0 0 43.9 0 97.8s43.9 97.8 97.8 97.8c36.5 0 68.3-20.1 85.1-49.7a97.76 97.76 0 0 0 149.6 25.4l19.4 22.2h3v-87.8h-80l24.3 27.5zM97.8 145c-26 0-47.1-21.1-47.1-47.1s21.1-47.1 47.1-47.1 47.2 21 47.2 47S123.8 145 97.8 145" />
            </svg>
            <span class="govuk-footer__licence-description">
              All content is available under the
              <a class="govuk-footer__link" href="https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/" rel="license">Open Government Licence v3.0</a>, except where otherwise stated
            </span>
          </div>
          <div class="govuk-footer__meta-item">
            <a class="govuk-footer__link govuk-footer__copyright-logo" href="https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/">© Crown copyright</a>
          </div>
        </div>
      </div>
    </footer>
  </body>
</html>

<!DOCTYPE html>
<html lang="en" class="govuk-template">
  <head>
    <meta charset="utf-8" />
    <title>Page Title - Service Title - Registers of Scotland</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  </head>
  <body class="govuk-template__body">
    <SkipLink targetId="main-content" />
    <span className="govuk-visually-hidden" role="alert">
      Page Title - Service Title – Registers of Scotland
    </span>
    <Header subtext="Service Title" id="top" />
    <aside className="govuk-width-container">
      <PhaseBanner phase="BETA">
        This is a new service -{' '}
        <Anchor href="mailto:userresearch@ros.gov.uk?subject=Design%20Website">
          your feedback
        </Anchor>{' '}
        will help us to improve it.
      </PhaseBanner>
    </aside>
    <div class="govuk-width-container app-width-container">
      <nav aria-label="Back">
        <BackLink href="#" />
      </nav>
      <main class="govuk-main-wrapper " id="main-content" role="main">
        <Heading>Default page template</Heading>
      </main>
    </div>
    <Footer />
</html>

Implementation details

  • The optional phase banner is wrapped in an aside tag which is different to the GDS template. This is to give it an appropriate page region.
  • Do not use both a breadcrumb and a back link - use one or the other based on if the page flow is a nested or linear journey
  • The (optional) breadcrumb or back link is wrapped in a nav tag with a suitable aria-label describing it's function - this is different to the GDS template to give it an appropriate parent region.

There is a problem