--- title: dir slug: Web/HTML/Global_attributes/dir tags: - BiDi - Global attributes - HTML - Reference translation_of: Web/HTML/Global_attributes/dir ---
{{HTMLSidebar("Global_attributes")}}

dir 전역 특성은 요소의 쓰기 방향을 나타내는 열거형 특성입니다.

{{EmbedInteractiveExample("pages/tabbed/attribute-dir.html","tabbed-standard")}}

가능한 값은 다음과 같습니다.

참고: dir 특성은{{HTMLElement("bdo")}} 요소에 필수로 지정해야 하며, 다른 뜻을 가집니다.

명세

Specification Status Comment
{{SpecName('HTML WHATWG', "dom.html#the-dir-attribute", "dir")}} {{Spec2('HTML WHATWG')}} No change from latest snapshot, {{SpecName('HTML5.1')}}
{{SpecName('HTML5.1', "dom.html#the-dir-attribute", "dir")}} {{Spec2('HTML5.1')}} Snapshot of {{SpecName('HTML WHATWG')}}, no change from {{SpecName('HTML5 W3C')}}
{{SpecName('HTML5 W3C', "dom.html#the-dir-attribute", "dir")}} {{Spec2('HTML5 W3C')}} Snapshot of {{SpecName('HTML WHATWG')}}, from {{SpecName('HTML4.01')}} it added the auto value, and is now a true global attribute.
{{SpecName('HTML4.01', "dirlang.html#h-8.2", "dir")}} {{Spec2('HTML4.01')}} Supported on all elements but {{HTMLElement("applet")}}, {{HTMLElement("base")}}, {{HTMLElement("basefont")}}, {{HTMLElement("bdo")}}, {{HTMLElement("br")}}, {{HTMLElement("frame")}}, {{HTMLElement("frameset")}}, {{HTMLElement("iframe")}}, {{HTMLElement("param")}}, and {{HTMLElement("script")}}.

브라우저 호환성

{{Compat("html.global_attributes.dir")}}

같이 보기