페이지 없음 페이지
페이지 없음 페이지 (Page not found pages)
페이지 없음(Page not found) 알림은 사용자가 보려던 페이지를 찾을 수 없다는 것을 알려줘요. 404 페이지라고도 불러요.
출처: 문서
본문
이 패턴을 언제 사용할까요
사용자가 존재하지 않는 페이지를 보려 할 때 페이지 없음 알림을 사용하세요. 다음과 같은 경우에 발생해요:
- 존재하지 않는 페이지로 이어지는 링크나 버튼을 선택한 경우
- 존재하지 않는 페이지의 웹 주소를 입력하거나 복사한 경우
- 웹 주소를 잘못 입력하거나 복사한 경우
모든 링크와 버튼을 테스트해 제대로 작동하는지 확인하세요. "단순하게 만들기 위해 노력하라"는 원칙을 기억하세요.
서비스, 편지, 양식, 그리고 GOV.UK의 모든 웹 주소가 존재하는 페이지로 연결되거나 존재하는 페이지로 리다이렉트되도록 하세요.
어떻게 동작하나요
페이지에는 다음이 있어야 해요:
- 페이지 제목으로 'Page not found – service name – GOV.UK'
- H1로 'Page not found'
- 연락처 정보(존재하면서 사용자 필요를 충족하는 데 도움이 된다면)
연락처 정보는 다음 중 하나여야 해요:
- 숫자와 운영 시간을 포함한 특정 페이지로의 링크
- 모든 숫자와 운영 시간을 직접 포함
콘텐츠는 명확하고 간결해야 하며, 사용자를 탓해서는 안 돼요.
다음을 사용하지 마세요:
- 빵 부스러기(breadcrumbs)
- 404 또는 bad request 같은 기술적 전문 용어
- oops 같은 비공식적이거나 유머러스한 표현
- 경고를 위한 빨간색 텍스트
HTML 예시
<div class="govuk-width-container">
<main class="govuk-main-wrapper govuk-main-wrapper--l" id="main-content" role="main">
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">Page not found</h1>
<p class="govuk-body">
If you typed the web address, check it is correct.
</p>
<p class="govuk-body">
If you pasted the web address, check you copied the entire address.
</p>
<p class="govuk-body">
If the web address is correct or you selected a link or button, <a href="#" class="govuk-link">contact the Tax Credits Helpline</a> if you need to speak to someone about your tax credits.
</p>
</div>
</div>
</main>
</div>
Nunjucks 예시
{% set mainClasses = "govuk-main-wrapper--l" %}
{% block content %}
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h1 class="govuk-heading-l">Page not found</h1>
<p class="govuk-body">
If you typed the web address, check it is correct.
</p>
<p class="govuk-body">
If you pasted the web address, check you copied the entire address.
</p>
<p class="govuk-body">
If the web address is correct or you selected a link or button, <a href="#" class="govuk-link">contact the Tax Credits Helpline</a> if you need to speak to someone about your tax credits.
</p>
</div>
</div>
{% endblock %}
이 패턴에 대한 연구
사람들이 스스로 문제를 해결할 수 있는지, 무슨 일이 일어났는지 이해하는지, 콘텐츠를 이해하고 빠진 것이 없는지 알아보기 위해 더 많은 연구가 필요해요.