HTML 사전

plaintext

Obsolete 폐지됨

설명

The HTML Plaintext Element (<plaintext>) renders text following the start tag without interpreting the HTML. It doesn't have an end tag as everything following it is no more considered HTML.

<plaintext>요소는 시작태그 이후에 나오는 텍스트를 HTML코드로 해석하지 않고 그대로 보여줍니다. 끝나는 태그가 없으므로, 웹브라우저는 요소 시작태그 이후에 나오는 모든 내용을 더 이상 HTML로 여기지 않습니다.

Note :
Do not use this element. 
•It is deprecated since HTML 2 and was neither implemented by all browsers, nor in a consistent way. Even more it is obsoleted in HTML 5 and may be rendered by conforming user-agents as the <pre> element, which will interpret the internal html !
 •If the <plaintext> element is the first element in the page (except for non-displayed element), do not use HTML at all. Configure your server to send your page with the text/plain MIME-type.
 •Instead use the <pre> element or if semantically adequate the <code> element, eventually escaping the HTML '<' and '>' so that they don't get interpreted.
 •A monospaced font can also be obtained on a simple <div> element, by applying an adequate CSS style using monospace as the generic-font value in a font-family property.

참고:
이 요소를 사용하지 마십시오.
- 이 요소는 HTML2이후부터 사용이 지양/배제(deprecated)되었습니다. 또 모든 브라우저의 의해 구현되지도 않고, 지원이 일관적이지도 않았습니다. 게다가, HTML5에서는 아예 지원하지 않습니다. 아마도 따르는 유저 에이전트들에 의해서는 <pre>요소로 렌더링 될 것입니다. 이것은 요소내의 HTML코드가 해석될 거라는 뜻입니다.
- 만약 <plaintext> 요소가 페이지의 첫째 요소라면(표시되지 않는 요소를 제외한), HTML을 전혀 사용하지 마십시오. 서버의 ‘페이지 보냄’설정을 text/plain MIME-type으로 셋팅하십시오.
- 대신, <pre>요소를 사용하세요. 의미론적으로 적절하다면, <code>요소의 사용도 좋습니다. 결과적으로 HTML의 '<'와 ‘>’를 이스케이핑 할 수 있습니다. 그리하여, 안의 코드들은 HTML로 해석되지 않겠죠.
- 평범한 <div>요소에도 고정폭(monospace)폰트를 사용할 수 있습니다. ‘font-family’ 속성에 제네릭-폰트 값 'monospace'으로 적절하게 CSS 스타일을 세팅함으로써 말이죠.

Usage Context

Permitted content  
Tag omission  
Permitted parent elements  
Normative document  

속성

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

예제


DOM Interface

This element implements the HTMLElement interface.

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

호환성

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

참고

댓글

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