HTML

HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes

FAQs

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

All Sections related to HTML