HTML dir Kenmerk
Voorbeeld
'n Paragraaf met 'n regs-na-links-rigting:
<p dir="rtl">Write this text right-to-left!</p>
Definisie en gebruik
Die dir
kenmerk spesifiseer die teksrigting van die element se inhoud.
Blaaierondersteuning
Attribute | |||||
---|---|---|---|---|---|
dir | Yes | Yes | Yes | Yes | Yes |
Sintaksis
<element dir="ltr|rtl|auto">
Eienskapwaardes
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) |
Verwante bladsye
HTML-tutoriaal: HTML-kenmerke
CSS Verwysing: rigting eiendom
HTML DOM Verwysing: HTML DOM dir Eiendom
HTML DOM Verwysing: Styl rigting Eiendom