November 2000
Intermediate to advanced
384 pages
8h 8m
English
Using the DOCTYPE we just created is as simple as using any W3C-supplied DOCTYPE. Simply declare it at the beginning of your XHTML document as you would any other; for example:
<!DOCTYPE html SYSTEM "recipe-1_0.dtd" >
Listing 16.5 shows a complete recipe developed using this DTD.
<!DOCTYPE html SYSTEM "recipe-1_0.dtd"> <html> <head> <meta name="description" content="Recipe for Glazed Carrots from the Navarro Family Recipe Collection" /> <title>Navarro Family Recipe Collection: Glazed Carrots</title> </head> <body> <h1>Glazed Carrots</h1> <div> <img src="carrots.jpg" alt="Glazed Carrots" width="150" height="150" /> </div> <recipe title="Glazed Carrots"> <ingredients> <ingredient quantity="1" ... |
Read now
Unlock full access