# 필요한 단계만 펼쳐 절차 읽기

GOV.UK · 단계별 안내 · 2026년 11월 20일 확인

## 원본에서 본 동작

GOV.UK의 운전면허 안내에서 첫 번째 단계 제목을 누르자 접혀 있던 설명과 세부 링크 세 개가 나타났습니다. 페이지에는 전체 단계를 펼치는 제어도 있습니다. Design Museum이 2013년 Design of the Year로 선정한 대상은 GOV.UK 웹사이트입니다. 현재의 운전면허 안내는 그 서비스에서 관찰한 활용 사례입니다. [GOV.UK 운전면허 단계별 안내](https://www.gov.uk/learn-to-drive-a-car) · [Design Museum 연도별 수상 기록](https://designmuseum.org/design/beazley-designs-of-the-year-overview)

## 적용할 때

여러 단계의 신청 절차, 전시 준비, 온보딩에서 사용자가 필요한 단계의 조건만 확인할 때 씁니다.

모든 단계 제목과 순서를 처음부터 노출합니다. 각각 독립적으로 열고 닫을 수 있어 앞 단계 내용을 보면서 다음 단계도 펼칠 수 있습니다.

샘플은 HTML details·summary로 세 단계의 전시 준비를 보여줍니다. 일부만 열려 있을 때 ‘모두 펼치기’를 누르면 모두 열고, 전부 열린 상태에서는 ‘모두 접기’로 바뀝니다. 펼침 상태는 업무 완료 상태와 별개입니다.

## 확인하는 방법

키보드로 첫 단계와 세 번째 단계를 차례로 펼쳐 둘 다 열려 있는지 확인합니다. 모두 펼치기, 모두 접기를 확인합니다. JavaScript를 꺼도 각 단계는 읽을 수 있습니다.

## 그대로 보낼 요청

> 입점 신청 절차를 순서대로 보여줘. 각 단계의 준비물을 독립적으로 펼치고 한 번에 모두 열 수 있게 해줘. 안내를 읽는 것만으로 업무 완료 처리를 하지 않게 해줘.

[실행 데모](../examples/step-guide/index.html) · [단일 HTML 저장](../downloads/step-guide.html) · [사례 목록에서 보기](../tools/references.html#step-guide)

## 실행 코드

아래 HTML 전체를 파일 하나로 저장해 브라우저에서 열 수 있습니다. 화면과 조작에 필요한 자료가 모두 들어 있습니다.

<!-- standalone-example -->

```html
<!doctype html>
<html lang="ko"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1">
<title>전시 출품 준비 · UI Motion Lab</title>
<style>:root{color-scheme:light;--paper:#f5f3ec;--ink:#262820;--line:#c7c6b7;--accent:#98402b}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.55 Arial,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;overflow-wrap:anywhere}
main{width:min(810px,calc(100% - 36px));margin:clamp(20px,5vh,58px) auto}
main h1{margin:0;font-size:clamp(28px,4.1vw,47px);font-weight:700;line-height:1.15;letter-spacing:-.065em}
main>p{color:#56594e;margin:8px 0 22px;line-height:1.55}.panel{padding:clamp(15px,2.7vw,28px);background:#fffdf6;border:1px solid var(--line);border-radius:2px}
button,select,input,textarea{font:inherit}button,select{min-height:40px}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}
button,select{background:#faf9f0;color:inherit;border:1px solid #a6a798;border-radius:3px;padding:5px 12px}
:focus-visible{outline:3px solid #945030;outline-offset:3px}button:enabled:hover,select:hover{border-color:var(--ink)}
[hidden]{display:none!important}.lab-embedded [data-lab-shell]{display:none!important}.lab-embedded main{margin:clamp(12px,2vh,25px) auto}
figure,fieldset{margin:0}p:last-child{margin-bottom:0}fieldset{min-width:0}
@media(max-width:460px){main{width:calc(100% - 24px);margin:16px auto}main>p{font-size:13px;margin:5px 0 14px}main h1{font-size:26px}.panel{padding:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
.lab-reduce *,.lab-reduce *::before,.lab-reduce *::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
.panel{background:#fff9ef;border-top:4px solid #784632}.guide-summary{display:flex;align-items:center;justify-content:space-between;gap:10px}.reading{font-size:12px;color:#5d574c}
#all{min-height:34px;font-size:13px}.panel ol{padding:0;margin:10px 0 0;list-style:none}.panel li{border-top:1px solid #c8bcaa}
summary{display:flex;align-items:center;gap:16px;min-height:48px;list-style:none;cursor:pointer;font-size:clamp(16px,2.4vw,23px);font-weight:620;letter-spacing:-.04em}
summary::-webkit-details-marker{display:none}summary::after{content:'+';margin-left:auto;font:23px/1 Georgia,serif;color:#6c4932}details[open] summary::after{content:'−'}
.step-num{font:italic 17px/1.1 Georgia,serif;color:#8a503b}.detail-copy{margin:0 0 14px clamp(22px,4vw,40px);padding-left:12px;border-left:2px solid #a46c4e}.detail-copy p{margin:0;font-size:14px}.detail-copy dl{display:flex;gap:8px;margin:.25em 0 0;font-size:12px}.detail-copy dt{color:#7a503a;white-space:nowrap}.detail-copy dd{margin:0}
</style>
<script>
const viewOptions=new URLSearchParams(location.search);
document.documentElement.classList.toggle('lab-embedded',viewOptions.get('embed')==='1');
document.documentElement.classList.toggle('lab-reduce',viewOptions.get('reduce')==='1');
</script>
</head>
<body class="lab-example">
<main><h1>전시 출품 준비</h1><p>필요한 항목을 펼쳐 제출할 자료와 반입 전에 확인할 사항을 읽으세요.</p>
<section class="panel" aria-label="출품 단계">
 <div class="guide-summary"><span class="reading" role="status">안내 3단계</span><button type="button" id="all" hidden>모두 펼치기</button></div>
 <ol>
 <li><details><summary><span class="step-num" aria-hidden="true">01</span>작품 규격 확인</summary><div class="detail-copy"><p>작품의 가로·세로·높이를 같은 단위로 기록하세요.</p><dl><dt>준비물</dt><dd>작품 실측치, 액자 또는 받침을 포함한 크기</dd></dl></div></details></li>
 <li><details><summary><span class="step-num" aria-hidden="true">02</span>출품 자료 준비</summary><div class="detail-copy"><p>작품 설명과 대표 사진을 준비하고 촬영 날짜를 확인하세요.</p><dl><dt>준비물</dt><dd>작품명, 재료, 제작 연도, 대표 사진</dd></dl></div></details></li>
 <li><details><summary><span class="step-num" aria-hidden="true">03</span>반입 일정 선택</summary><div class="detail-copy"><p>설치 소요 시간과 현장 도착 시간을 정하세요.</p><dl><dt>확인 사항</dt><dd>작품 포장 크기, 반입 동선, 설치 순서</dd></dl></div></details></li>
 </ol>
</section>
</main>
<script>

const items = Array.from(document.querySelectorAll("details"));
const all = document.querySelector("#all");
function syncLabel() {
  const count=items.filter(item=>item.open).length;
  all.textContent = count===items.length ? "모두 접기" : "모두 펼치기";
  document.querySelector(".reading").textContent="3단계 중 "+count+"개 펼침";
}
all.hidden = false;
items.forEach(item => item.addEventListener("toggle", syncLabel));
all.addEventListener("click", () => {
  const expand = !items.every(item => item.open);
  items.forEach(item => { item.open = expand; });
  syncLabel();
});
</script>
</body></html>
```
