--- title: slug: Web/HTML/Element/s tags: - Element - HTML - HTML text-level semantics - Reference - Web translation_of: Web/HTML/Element/s ---
{{HTMLRef}}

HTML <s> 요소는 글자에 취소선, 즉 글자를 가로지르는 선을 그립니다. <s> 요소를 사용해 이제 관계 없거나 더 이상 정확하지 않은 부분을 나타내세요. 그러나, <s>는 문서의 편집 기록을 나타내는 용도로는 적합하지 않습니다. 상황에 따라 {{HTMLElement("del")}}과 {{HTMLElement("ins")}} 요소를 대신 사용하세요.

{{EmbedInteractiveExample("pages/tabbed/s.html", "tabbed-shorter")}}
콘텐츠 카테고리 플로우 콘텐츠, 구문 콘텐츠.
가능한 콘텐츠 구문 콘텐츠.
태그 생략 {{no_tag_omission}}
가능한 부모 요소 구문 콘텐츠를 허용하는 모든 요소.
가능한 ARIA 역할 모두
DOM 요소 {{domxref("HTMLElement")}}

특성

이 요소는 전역 특성만 포함합니다.

예제

<s>Today's Special: Salmon</s> SOLD OUT<br>

{{EmbedLiveSample("예제")}}

접근성 고려사항

대부분의 스크린 리더는 기본값에서 <s> 요소의 존재를 표현하지 않습니다. 그러나 CSS {{cssxref("content")}} 속성과 {{cssxref("::before")}}, {{cssxref("::after")}} 의사 요소를 사용하면 소리내어 읽도록 할 수 있습니다.

s::before,
s::after {
  clip-path: inset(100%);
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

s::before {
  content: " [취소선 시작] ";
}

s::after {
  content: " [취소선 끝] ";
}

스크린 리더 사용자 일부는 지나치게 자세한 안내를 유발할 수 있는 콘텐츠의 표현을 의도적으로 꺼놓습니다. 그러므로 이 방식을 남용해선 안되며, 콘텐츠의 이해에 취소선의 유무가 꼭 필요할 때만 사용해야 합니다.

명세

Specification Status Comment
{{SpecName('HTML WHATWG','semantics.html#the-s-element','s element')}} {{Spec2('HTML WHATWG')}}
{{SpecName('HTML5 W3C','textlevel-semantics.html#the-s-element','s element')}} {{Spec2('HTML5 W3C')}}

브라우저 호환성

{{Compat("html.elements.s")}}

같이 보기