본문 바로가기
명함 만들기 캐릭터 모음 16가지 디자인 · PNG / SVG / PDF

비교 표

둘 이상을 같은 기준으로 줄 세워, 무엇이 되고 무엇이 안 되는지 보게 하는 표.

정보 표시

실제 미리보기

출처

<div class="dc-cmp" role="region" aria-label="요금제 비교 표" tabindex="0">
  <table class="dc-cmp__table">
    <caption class="dc-cmp__cap">요금제별로 되는 것과 안 되는 것</caption>
    <thead>
      <tr>
        <th scope="col" class="dc-cmp__corner">기능</th>
        <th scope="col">무료</th>
        <th scope="col" class="dc-cmp__best">프로</th>
        <th scope="col">팀</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <th scope="row">만들 수 있는 문서</th>
        <td>3개까지</td>
        <td class="dc-cmp__best">무제한</td>
        <td>무제한</td>
      </tr>
      <tr>
        <th scope="row">워터마크 없는 내보내기</th>
        <td><span class="dc-cmp__no" aria-hidden="true">–</span><span class="dc-sr">안 됩니다</span></td>
        <td class="dc-cmp__best"><span class="dc-cmp__yes" aria-hidden="true">✓</span><span class="dc-sr">됩니다</span></td>
        <td><span class="dc-cmp__yes" aria-hidden="true">✓</span><span class="dc-sr">됩니다</span></td>
      </tr>
      <tr>
        <th scope="row">지난 버전 보관</th>
        <td>7일</td>
        <td class="dc-cmp__best">30일</td>
        <td>180일</td>
      </tr>
      <tr>
        <th scope="row">권한 나누기</th>
        <td><span class="dc-cmp__no" aria-hidden="true">–</span><span class="dc-sr">안 됩니다</span></td>
        <td class="dc-cmp__best"><span class="dc-cmp__no" aria-hidden="true">–</span><span class="dc-sr">안 됩니다</span></td>
        <td><span class="dc-cmp__yes" aria-hidden="true">✓</span><span class="dc-sr">됩니다</span></td>
      </tr>
      <tr>
        <th scope="row">문의 답변</th>
        <td>메일</td>
        <td class="dc-cmp__best">평일 당일</td>
        <td>전담 담당자</td>
      </tr>
    </tbody>
  </table>
</div>
.dc-cmp { overflow-x:auto; border:1px solid var(--dc-line); border-radius:var(--dc-r-md); background:var(--dc-surface); font-family:var(--dc-font); }
.dc-cmp__table { width:100%; min-width:520px; border-collapse:separate; border-spacing:0; font-size:14px; }
.dc-cmp__cap { padding:var(--dc-3) var(--dc-4); text-align:left; font-size:14px; font-weight:700; color:var(--dc-text); }
.dc-cmp__table th, .dc-cmp__table td { padding:var(--dc-3) var(--dc-4); border-top:1px solid var(--dc-line); text-align:left; vertical-align:top; color:var(--dc-text-sub); }
.dc-cmp__table thead th { background:var(--dc-sunken); color:var(--dc-text); font-size:13px; white-space:nowrap; }
.dc-cmp__table tbody th { color:var(--dc-text); font-weight:600; }
.dc-cmp__table tbody th, .dc-cmp__corner { position:sticky; left:0; z-index:1; background:var(--dc-surface); box-shadow:1px 0 0 var(--dc-line); }
.dc-cmp__best { background:var(--dc-brand-soft); color:var(--dc-brand-text); }
.dc-cmp__yes { color:var(--dc-ok); font-weight:700; }
.dc-cmp__no { color:var(--dc-text-mute); }

이렇게 씁니다

  • 행은 사람이 궁금해하는 순서로. 결정을 가르는 기준을 맨 위에 둔다
  • 값을 적을 수 있는 자리에는 체크 대신 '3개까지' 처럼 실제 값을 쓴다
  • 열이 네 개를 넘으면 가로로 스크롤되게 두고 첫 열은 붙여 둔다

주의할 점

  • 표를 div 로 만들지 않는다. th 와 scope 가 있어야 어느 칸인지 읽어 준다
  • 체크 기호만 넣으면 소리로는 아무 말도 아니다. dc-sr 로 '됩니다 / 안 됩니다'를 적는다

다음에 볼 것