Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

7. Moving to XHTML: Putting an ‘X’ into ... > What does this have to do with HTML?

What does this have to do with HTML?

If XML is a language that can be used to invent new markup languages, and HTML is a markup language, can we use XML to recreate HTML? We sure can. Let’s see how this might look before we talk about why in the heck you’d actually want to:

image with no caption
image with no caption

This is going to sound very anticlimatic, but XHTML is XML while HTML is, well, just HTML. The big distinction may be difficult for you to see at first glance, but the reason XML is a good thing (and the reason the W3C and others have gone to all the trouble of creating XHTML, when they already had HTML) is that once your pages are written in XHTML, all sorts of things become possible that aren’t possible with HTML. (You’ll get a feel for some of those things in just a sec).


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint