Home >Web Front-end >HTML Tutorial >HTML attribute dir that specifies the text direction of element content

HTML attribute dir that specifies the text direction of element content

黄舟
黄舟Original
2017-11-03 10:17:262365browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn