user3619137
user3619137

Reputation: 1

Can you do HTML right to left?

Can you do HTML right to left? For example if you are Arabian could you type html right to left? I would like to know for reasons.

Upvotes: 0

Views: 299

Answers (2)

Zander Rootman
Zander Rootman

Reputation: 2208

No, you can't.
The code is code. It's interpreted by your browser, and displayed on your screen just so. The browser (well most browsers) interpret the HTML the same way, and that's from Top to Bottom and then from right to left.

So concerning HTML syntax, and in which direction you code in, left to right, would be the most universally accepted way.

Unfortunately, English is seen as the Universal language, for HTML and programming also.

From a maintenance perspective: It's also better for all code to share the same language, so that all coders from any race or country can understand it.

Upvotes: 0

WAQAS AJMAL
WAQAS AJMAL

Reputation: 289

if you want to set direction from right to left by htm then you can right this code in html tag

<html dir="rtl" lang="ar">

Or

with css you can add the property to element i.e div as given below

div
{
  direction:rtl;
} 

Upvotes: 1

Related Questions