• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

5.4. XHTML

The Web has reached a point that many pages contain “bad” HTML (see Example 5.13). The eXtensible HTML (XHTML) markup language was designed to combine the best of HTML and XML: It supports all of the elements of HTML 4.0 combined with the well formed syntax of XML. Essentially, XHTML is a reformulation of HTML 4.0 in XML. The HTML code in Example 5.15 will work fine with some browsers, even though it does not follow the HTML rules. The correct equivalent code is presented in Example 5.16.

Example 5.13. A bad HTML missing closing </p> tags.

					<p>This is a paragraph
					<p>This is another paragraph
				


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint