<kbd>

You’re reading the English version of this content since no translation exists yet for this locale. Help us translate this article!

HTML Keyboard Input 요소 (<kbd>) 는 유저 입력을 나타내며, 브라우저의 기본 모노스페이스 폰트로 표시되는 인라인 요소를 생성합니다.

속성

이 요소는 전역 속성만을 포함합니다.

예제

<p>Type the following in the Run dialog: <kbd>cmd</kbd><br />Then click the OK button.</p>

<p>Save the document by pressing <kbd><kbd>Ctrl</kbd>+<kbd>S</kbd></kbd></p>

결과

참고

브라우저의 기본 폰트를 오버라이드 하기위해 kbd 셀렉터를 위한 CSS 규칙이 정의돌수 있습니다. Preferences set by the user might take precedence over the specified CSS.

명세

명세 상태 주석
HTML Living Standard
The definition of '<kbd>' in that specification.
Living Standard  
HTML5
The definition of '<kbd>' in that specification.
Recommendation Expanded to include any user input, like voice input and individual keystrokes.
HTML 4.01 Specification
The definition of '<kbd>' in that specification.
Recommendation  

브라우저 호환성

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
kbdChrome Full support YesEdge Full support YesFirefox Full support 1
Notes
Full support 1
Notes
Notes Before Firefox 4, creating a <kbd> element incorrectly resulted in an HTMLSpanElement object, instead of the expected HTMLElement.
IE Full support YesOpera Full support YesSafari Full support YesWebView Android Full support YesChrome Android Full support YesFirefox Android Full support 4Opera Android Full support YesSafari iOS Full support YesSamsung Internet Android Full support Yes

Legend

Full support  
Full support
See implementation notes.
See implementation notes.

같이 보기