Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 8
Internationalization attributes are available for almost XHTML elements eg.1 Lang Attribute It focuses specifically on advice about specifying the language of content. eg.2 Dir Attribute The dir attribute allows you to indicate to the browser the direction in which the text should flow. The dir attribute can take one of two values. ltr - Left to right (the default value) rtl Right to left (for languages such as Hebrew or Arabic that are read right to left) EXAMPLE <!DOCTYPE html> <html dir="rtl"> <head> <title>Display Directions</title> </head> <body> This is how IE 5 renders right-to-left directed text. </body> </html> This will produce following result: This is how IE 5 renders right-to-left directed text.
7th Dec 2018, 8:06 PM
AKS
AKS - avatar