HTML 사전

del

설명

The Deleted Text (<del>) HTML element represents a range of text that has been deleted from a document. This element is often (but need not be) rendered with strike-through text.

<del> 요소는 문서에서 삭제된 특정영역을 표시해 준다. <del> 요소를 사용하면, 보통은 텍스트의 중간을 지나는 선이 그어진다.

Usage Context

Permitted content Transparent content model, either Phrasing content or Flow content
Tag omission None, must have both a start tag and and end tag.
Permitted parent elements Any element that accepts phrasing content, or any element that accepts Flow content
Normative document HTML 5, section 4.7.2; HTML 4.01, section 9.4

속성

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

cite

A URI for a resource that explains the change (for example, meeting minutes).

어떤 변화가 있었는지 그 내용이 들어있는 파일의 주소(URI)다. 예를 들어 어떤 회의 결과로 문구를 '삭제'키로 결정했다면, 그 회의의 의사록으로 연결되는 링크를 cite속성으로 제시하여, 삭제된 이유를 설명할 수 있다는 뜻이다.

datetime

This attribute indicates the time and date of the change and must be a valid date with an optional time string. If the value cannot be parsed as a date with an optional time string, the element does not have an associated time stamp.

이 속성은 변경 시점의 날짜와 시간을 알려준다. 날짜와 시간은 반드시 유효한 날짜정보가 있는 문자열이어야 하고, 필요할 경우에 시간문자열까지 함께 넣는다. 만약 이 값이 유효한 날짜와 시간정보로 분석되지 않으면 요소는  시간정보(timestamp)를 갖지 않는 것으로 간주된다. 

예제

<p><del>This text has been deleted</del></p>  
<p><del>엉엉엉</del>하하하</p>  
<p><del>이 부분은  삭제되었습니다.</del></p>

 

DOM Interface

HTMLModElement

호환성

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

참고

댓글

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