title: XHTML by Example (By Example)
author:  Ann Navarro 
description: While Ian Graham's two excellent Wiley titles (the <I><a href="/exec/obidos/ASIN/0471374857/${0}">XHTML 1.0 Language and Design Sourcebook</a></I> and the companion volume <I><a href="/exec/obidos/ASIN/0471374865/${0}">XHTML 1.0 Web Development Sourcebook</a></I>) have certainly set a high standard for books about HTML's latest incarnation, there is room left for other publications, especially those that are accessible to the beginner and not simply masquerading as such. Books as well written as <I>XHTML by Example</I> are particularly welcome. Ann Navarro, of the W3C XHTML Working Group, has penned a clear and concise yet comprehensive introduction that is sure to be of great value to both newcomers (the book takes little for granted) and the more experienced (it is detailed and thorough).
zlib_text: 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
    1. [1\. Errors](ch01.xhtml#ch04)
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  * [1.1. Using Errors](ch01.xhtml#idm45297084274648)
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  * [1.2. Capturing Errors by their subtypes](ch01.xhtml#idm45297083039160)
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  * [1.3. Throwing useful errors](ch01.xhtml#idm45297082984120)
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  * [1.4. Throwing custom errors](ch01.xhtml#idm45297082008536)
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  * [1.5. Handling JSON parsing errors](ch01.xhtml#idm45297081823512)
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  * [2\. Working with HTML](ch02.xhtml#ch13)
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  * [2.1. Accessing a Given Element and Finding Its Parent and Child Elements](ch02.xhtml#access_a_given_element_and_find_its_pare)
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  * [2.2. Traversing the Results from querySelectorAll() with forEach()](ch02.xhtml#traversing_results_queryselect)
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  