HTML 사전

tt

설명

Obsolete 폐지되었음

The HTML Teletype Text Element (<tt>) produces an inline element displayed in the browser's default monotype font. This element was intended to style text as it would display on a fixed width display, such as a teletype. It probably is more common to display fixed width type using the <code> element.

<tt>(Teletype Text)요소는 브라우저의 고정폭폰트로 표시할 때 사용한다. <tt>요소는 원래 전보문처럼 고정폭으로 텍스트를 표시하려고 하려는 의도로 만들어졌다. 현재에는 고정폭폰트로 표시할 때에 <code>요소를 사용하는 것이 더 흔하다.

This element is obsolete. Use a more appropriate element, such as code or span with CSS, instead.

이 요소는 폐지되었다. 고정폭 폰트로 표현하려면 <code>요소를 사용하거나 <span>에 CSS를 사용하라.

속성

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

예제

  <p>Enter the following at the telnet command prompt: <kbd>set localecho</kbd><br />
   The telnet client should display: <tt>Local Echo is on</tt></p>
 <p>텔넷 창에 다음을 입력하세요.
: <kbd>로컬에코를 세팅하라</kbd><br />
   텔넷 클라이언트는 다음을 표시해주어야 합니다.: <tt>로컬에코 세팅완료!</tt></p>

Notes

  • A CSS rule can be defined for the tt selector to override the browser's default font face. Preferences set by the user might take precedence over the specified CSS.
  • Although this element was not deprecated in the HTML 4.01 specification, its use is discouraged in favor of style sheets.

참고

  • <tt>에 대해 CSS로 정의하면 브라우저의 기본폰트가 아닌 다른 폰트를 적용할 수 있다. 웹브라우저의 사용자가 설정한 것이 CSS에 정의된 것에 우선하여 적용될 수 있다. HTML 4.01에서는 이 요소가 폐지예정되지는 않았지만, <tt>요소를 쓰는 것 보다는 CSS를 쓰는 편이 낫다.

DOM Interface

This element implements tThis element implements the HTMLElement interface.

참고

댓글

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