Skip to main content
Richard Hill - Online Learning
An Introduction to XMLZIPPDF (letter)PDF (A4)e-mail
Main menuSection menuFeedbackPreviousNext
4. XHTML
  


Root Element page 4 of 11


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">


Main menuSection menuFeedbackPreviousNext
www.shu.ac.uk/schools/cms/teaching/rh1