HTML dizini Özellik
Örnek
Sağdan sola yön içeren bir paragraf:
<p dir="rtl">Write this text right-to-left!</p>
Tanım ve Kullanım
Nitelik dir
, öğenin içeriğinin metin yönünü belirtir.
Tarayıcı Desteği
Attribute | |||||
---|---|---|---|---|---|
dir | Yes | Yes | Yes | Yes | Yes |
Sözdizimi
<element dir="ltr|rtl|auto">
Özellik Değerleri
Value | Description |
---|---|
ltr | Default. Left-to-right text direction |
rtl | Right-to-left text direction |
auto | Let the browser figure out the text direction, based on the content (only recommended if the text direction is unknown) |
İlgili Sayfalar
HTML Eğitimi: HTML Nitelikleri
CSS Referansı: yön özelliği
HTML DOM Referansı: HTML DOM dir Özellik
HTML DOM Referansı: Stil yönü Özellik