dir Attribute
dir Attribute
The dir attribute defines the text direction of the content of the element.
Attribute Explanation:-
Value | Description |
---|---|
ltr | Default. Left-to-right text direction |
rtl | Right-to-left text direction |
auto | Let the browser figure out the text direction, based on the content. |
Syntax:-
Its syntax is:- < element dir="ltr|rtl|auto" >
Code Explanation
All Tutorials related to HTML Global Attributes
accesskey Attribute
class Attribute
contenteditable Attribute
data-* Attributes
dir Attribute
draggable Attributes
hidden Attribute
id Attribute
lang Attribute
spellcheck Attribute
style Attribute
tabindex Attribute
title Attribute
translate Attribute