dir attribute

By Opera Software

Description

The dir attribute defines the direction of the language used by an element with the following values:

  • "ltr" value stands for Left-To-Right text
  • "rtl" value stands for Right-To-Left text
  • "lro" value stands for Left-To-Right Override text
  • "rlo" value stands for Right-To-Left Override text

Example

<?xml version="1.0" encoding="utf-8"?>
<widget xmlns="http://www.w3.org/ns/widgets" id="http://example.com/myExtension" version="1.0">
 ...
  <span dir="rtl">
    Text meant to be read from right to left can go here.
  </span>
  ...
</widget>

This article is licensed under a Creative Commons Attribution 3.0 Unported license.

Comments

No new comments accepted.