Home >Web Front-end >HTML Tutorial >HTML attribute dir that specifies the text direction of element content
Example
A paragraph with a direction from right to left:
<p dir="rtl">Write this text right-to-left!</p>
Browser support
All browsers support dir Attribute.
Definition and Usage
The dir attribute specifies the text direction of the element content.
Tips and Notes
Note: The dir attribute is not valid in the following tags:
, ,
The above is the detailed content of HTML attribute dir that specifies the text direction of element content. For more information, please follow other related articles on the PHP Chinese website!