No cache version.

Caching disabled. Default setting for this page:enabled (code LNG204)
If the display is too slow, you can disable the user mode to view the cached version.

Référence HTML : dir

L'attribut dir

  • Type : (rtl | ltr)
  • Valeur par défaut : #IMPLIED

Description de l'attribut dir

Nous pouvons utiliser l'attribut dir pour spécifier la direction du texte.

Nous pouvons utiliser les valeurs suivantes :
  • ltr : texte ou table allant de gauche à droite (angl : left-to-right).
  • rtl : texte ou table allant de droite à gauche (angl : right-to-left]).

Eléments qui peuvent utiliser cet attribut :

| a | abbr | acronym | address | area | b | big | blockquote | body | button | caption | center | cite | code | col | colgroup | dd | del | dfn | dir | div | dl | dt | em | embed | fieldset | font | form | h1 | h2 | h3 | h4 | h5 | h6 | head | hr | html | i | img | input | ins | isindex | kbd | label | legend | li | link | listing | map | menu | meta | noframes | noscript | object | ol | optgroup | option | p | plaintext | pre | q | s | samp | select | small | span | strike | strong | style | sub | sup | table | tbody | td | textarea | tfoot | th | thead | title | tr | tt | u | ul | var | xmp |

L'attribut dir

  • Type : (rtl | ltr)
  • Valeur par défaut : #REQUIRED

Description de l'attribut dir

Nous pouvons utiliser l'attribut dir pour spécifier la direction de base de tout élément texte dans le document. Cette direction prévaut sur la directionnalité inhérente des caractères, telle qu'elle est définie dans UNICODE.

Nous pouvons utiliser les valeurs suivantes :
  • ltr : texte de gauche à droite (angl : left-to-right).
  • rtl : texte de droite à gauche (angl : right-to-left]).

Eléments qui peuvent utiliser cet attribut :

| bdo |

Liste des attributs et évènements


Liste des balises

English translation

You have asked to visit this site in English. For now, only the interface is translated, but not all the content yet.

If you want to help me in translations, your contribution is welcome. All you need to do is register on the site, and send me a message asking me to add you to the group of translators, which will give you the opportunity to translate the pages you want. A link at the bottom of each translated page indicates that you are the translator, and has a link to your profile.

Thank you in advance.

Document created the 14/08/2006, last modified the 29/07/2022
Source of the printed document:https://www.gaudry.be/en/xhtml-rf-attribut/dir.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.