HTML <bdo>
요소는 현재 텍스트의 쓰기 방향을 덮어쓰고 다른 방향으로 렌더링 할 때 사용합니다.
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.
콘텐츠 카테고리 | 플로우 콘텐츠, 구문 콘텐츠, 뚜렷한 콘텐츠. |
---|---|
가능한 콘텐츠 | 구문 콘텐츠. |
태그 생략 | None, both the starting and ending tag are mandatory. |
가능한 부모 요소 | 구문 콘텐츠를 허용하는 모든 요소. |
암시적 ARIA 역할 | 대응하는 역할 없음 |
가능한 ARIA 역할 | 모두 |
DOM 인터페이스 | HTMLElement |
특성
이 요소는 전역 특성을 포함합니다.
dir
- 요소 콘텐츠의 텍스트 쓰기 방향. 가능한 값은 다음과 같습니다.
ltr
: 텍스트를 왼쪽에서 오른쪽으로 써야 함을 나타냅니다.rtl
: 텍스트를 오른쪽에서 왼쪽으로 써야 함을 나타냅니다.
예제
<!-- 쓰기 방향 바꾸기 -->
<p>이 글은 왼쪽에서 오른쪽으로 작성합니다.</p>
<p><bdo dir="rtl">이 글은 오른쪽에서 왼쪽으로 작성합니다.</bdo></p>
결과
명세
Specification | Status | Comment |
---|---|---|
HTML Living Standard The definition of '<bdo>' in that specification. |
Living Standard | |
HTML5 The definition of '<bdo>' in that specification. |
Recommendation | |
HTML 4.01 Specification The definition of '<bdo>' 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.