To prevent overlapping elements, and therefore force proper nesting, XML requires a root element. In XHTML this is <html> and is placed after the DOCTYPE declaration.
Also there must be a reference to an XML namespace that the document uses. We haven't covered them yet, but this is what one looks like:
<html xmlns="http://www.w3.org/1999/xhtml">