HTML 사전

samp

설명

The HTML Sample Text Element (<samp>) produces an inline element displayed in the browser's default monotype font (Lucida Console). This element was intended to identify sample output from a computer program.

<samp> 요소(샘플 텍스트 요소)는 브라우저에서 기본으로 설정된 고정폭 폰트로 표시되는 인라인 요소를 만든다. 이 요소는 컴퓨터 프로그램의 예제 출력결과를 표시하는 목적으로 사용된다.

Usage Context

Permitted content Phrasing content
Tag omission None, must have both a start tag and an end tag.
Permitted parent elements Any element that accepts phrasing content.
Normative document HTML5, section 4.6.13; HTML 4.01, section 9.2.1

속성

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

예제

<p>Regular text. <samp>This is sample text.</samp> Regular text.</p>

<p>보통 텍스트. <samp>요 부분은 샘플.</samp> 다시 보통 텍스트</p>

DOM 인터페이스

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

구현상 주의점 :
파이어폭스는 Gecko 1.9.2에 이를 때까지 이 요소를 HTMLSpanElement로 구현하고 있었다.

호환성

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

참고

댓글

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