HTML 사전

s

Obsolete 폐지됨

설명

The HTML Strikethrough Element (<s>) renders text with a strike-through, or a line through it.

<s>요소(Strikethrough,가운데줄)는 텍스트의 가운데에 줄을 그어 준다. 

Usage Note :
As all purely styling element, <s> has been deprecated in HTML 4 and XHTML 1, and obsoleted in HTML5. If semantically appropriated, i.e. if it represents deleted content, use the <del> instead; in all other cases use a <span> element and style it with the CSStext-decoration property, with the line-through value.

사용시 참고하기:
순수하게 모양을 지정하는 다른 요소들과 마찬가지로, HTML4나 XHTML!에서는 <s>요소를 폐지예정하였고, HTML5부터는 폐지되었다. 삭제된 텍스트에 중간 줄을 그어주려고 하는 경우라면, <s>대신 <del>을 사용하자. 그 외의 경우에는 <span>요소를 사용하고 CSS text-decoration 속성값으로 line-through을 지정해서 중간 줄을 그어주자.

Usage Context

Permitted content  
Tag omission  
Permitted parent elements  
Normative document  

속성

이 엘리먼트는 전역속성을 지원한다.

예제

<s>Today's Special: Salmon</s> SOLD OUT<br />
<span style="text-decoration:line-through;">Today's Special: Salmon</span> SOLD OUT<br />

<s> 오늘의 특별요리 : 갈비찜</s> 다 나갔음 <br />
<span style="text-decoration:line-through;">오늘의 특별 요리 : 갈비찜</span> 다 나갔음 <br />

DOM Interface

This element implements the HTMLElement interface.

이 요소는 HTMLElement 인터페이스를 구현했다.

Implementation note :
up to Gecko 1.9.2 inclusive, Firefox implements the HTMLSpanElement interface for this element.

구현시 참고하기:
Gecko 1.9.2버전까지는, 파이어폭스에서 이 요소를 위한 HTMLSpanElement를 구현한다.

호환성

Desktop
기능 구글크롬 파이어폭스Gecko) 인터넷 익스플로러 Opera Safari
기본적인 지원          
Mobile
기능 안드로이드 파이어폭스 모바일(Gecko) 인터넷 익스플로러 모바일 오페라 모바일 사파리 모바일
기본적인 지원          

참고

 

 

댓글

댓글 본문
버전 관리
김나솔
현재 버전
선택 버전
graphittie 자세히 보기