XHTML is a stricter version of HTML that helps pages look identical across browsers. A basic XHTML document includes the DOCTYPE at the top, elements written in lowercase and nested properly with opening and closing tags. White space and formatting does not affect rendering, so code can be organized for readability.