HTML 사전

strike

 Obsolete 폐지되었음

설명

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

<strike>요소는 텍스트 가운데에 줄을 그을 때 사용한다.

Usage Note :
As all purely styling element, <strike> 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.

사용시 참고 :
순수하게 모양을 꾸며주는 다른 요소들과 마찬가지로, <strike>요소도 HTML4와 XHTML 1에서 폐지예정되었고, HTML5에서 폐지되었다. 본문이 삭제된 경우여서 가운뎃 줄을 긋는 경우라면 <strike>요소 대신 <del>을 쓰자; 다른 경우에 가운뎃 줄을 그을 때에는 <span>요소로 감싸주고 CSS의 text-decoration 속성값으로 line-through을 주는 방법으로 표현하자.

Usage Context

Permitted content  
Tag omission  
Permitted parent elements  
Normative document  

속성

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

예제

<strike>Today's Special: Salmon</strike> SOLD OUT<br />
<span style="text-decoration:line-through;">Today's Special: Salmon</span> SOLD OUT
<strike>오늘의 특별요리 : 연어</strike> 다 나갔음<br />
<span style="text-decoration:line-through;">오늘의 특별요리 : 연어</span> 다 나갔음

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 자세히 보기