HTML <rt>
요소는 동아시아 문자의 루비 주석에서 발음, 번역 등을 나타내는 텍스트 부분을 지정합니다.
The source for this interactive example is stored in a GitHub repository. If you'd like to contribute to the interactive examples project, please clone https://github.com/mdn/interactive-examples and send us a pull request.
콘텐츠 카테고리 | 없음. |
---|---|
가능한 콘텐츠 | 구문 콘텐츠. |
태그 생략 | 바로 뒤따르는 요소가 <rp> , 다른 <rt> 요소거나 자신이 부모의 마지막 요소라면 닫는 태그를 생략할 수 있습니다. |
가능한 부모 요소 | <ruby> 요소. |
가능한 ARIA 역할 | 모두 |
DOM 인터페이스 | HTMLElement |
특성
이 요소는 전역 특성만 포함합니다.
예제
다음 예제는 <ruby>
요소를 사용해 한자의 발음을 표기합니다.
<ruby>
漢 <rt>한</rt>
字 <rt>자</rt>
</ruby>
body {
font-size: 22px;
}
결과는 다음과 같습니다.
브라우저가 루비를 지원하지 않는 경우엔 다음처럼 보일 것입니다.
漢 한 字 자
body {
font-size: 22px;
}
명세
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of '<rt>' in that specification. |
Living Standard | |
HTML5 The definition of '<rt>' in that specification. |
Recommendation |
브라우저 호환성
BCD tables only load in the browser
The compatibility table in this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.