In the remainder of this chapter, I'm going to get to the actual XHTML programming, starting with the document element, <html>.
This element is supported in XHTML 1.0 Strict, XHTML 1.0 Transitional, XHTML 1.0 Frameset, and XHTML 1.1. Here are its attributes:
|dir||Sets the direction of text that doesn't have an inherent direction in which you should read it, called directionally neutral text. You can set this attribute to LTR, for left-to-right text, or RTL, for right-to-left text.|
|lang||Specifies the base language used in the element. Applies only when the document is interpreted as HTML.|
|xml:lang||Specifies the base language for the element when the document is interpreted as XML.|