XHTML Programming
In the remainder of this chapter, I'm going to get to the actual XHTML programming, starting with the document element, <html>.
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:
Attribute | Description |
---|---|
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. |
xmlns ... |
Get Inside XML now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.