Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015년 7월.
HTML <code> 요소는 짧은 코드 조각을 나타내는 스타일을 사용해 자신의 콘텐츠를 표시합니다. 기본 스타일은 사용자 에이전트의 고정폭 글씨체입니다.
| 플로우 콘텐츠, 구문 콘텐츠, 뚜렷한 콘텐츠. |
| 구문 콘텐츠. |
| 불가능, 시작과 끝에 태그를 추가하는 것은 필수입니다. |
| 구문 콘텐츠를 허용하는 모든 요소. |
| 모두 |
| HTMLElement |
이 요소는 전역 특성만 포함합니다.
여러 줄의 코드를 나타내려면 <code> 요소를 <pre>로 감싸세요. 보통 상황에서 <code>는 코드 한 줄만 나타냅니다.
CSS code 태그 선택자를 사용해 브라우저의 기본 글씨체를 바꿀 수 있습니다. 그러나 사용자 설정이 CSS보다 우선할 수도 있습니다.
| HTML # the-code-element |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2026년 4월 15일 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.