When writing in HTML, the tag (which stands for bidirectional override) is an inline element used to force text to go one way or another. It is useful when dealing with languages that are written from right to left, such as Hebrew and Arabic. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility.

Example code

This text is written from left-to-right.

This text is written from right-to-left.

The above code, rendered in a web browser:

  • Example code
  • Attributes
  • Compatibility
  • Related information

This text is written from left-to-right.

This text is written from right-to-left.

Attributes

Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the tag, and a description of each.

Compatibility

, Browser, Compatibility, Computer acronyms, Container tag, Web design terms

  • HTML and web design help and support.