Creating Web Documents XHTML
History XHTML is the latest version of HTML 'cleaned up' to be an XML language eXtended Markup Language: general standard May prove more robust for new uses browser settings for general language, character coding browsers for web phones readers for special browsers for disabled other
Terminology Markup elements have start tag start tag may have attributes content may include other elements as well as text end tag <a href="next.html">Continue </a>
Requirements <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"> Just copy this to top of document
Requirements proper nesting of tags tag names all lower case all tags have start and end tags including <p> and <li> empty tags (singletons) written with closing <br /> attributes enclosed by quotation marks document had head and body elements, head element also contains a title element
Entity references Produce symbol or indicate action by browser & The ampersand symbol & < The left pointy bracket < stands for non-breaking space. Will insert a space, unless there is a line break. © The copyright symbol Suggest a best point for a hyphen.