HTML and CSS Reference
can lead to a page being rejected by an XHTML parser. To avoid this problem, you can
cessed by XHTML parsers. Unfortunately, CDATA sections are not well supported by
Another alternative is not to embed your scripts within XHTML files at all, but instead
to place them in external files. This practice has the added advantage of separating
program code from page content. If you need to create valid XHTML documents, this is
probably the best solution.
Writing Output to a Web Document
an e-mail address into the Web page. Although you could enter the e-mail address directly,
statement as you progress through the rest of the tutorial. You'll insert the e-mail address for
To write this text to the Web document, you'll insert the following statement:
to the Web page document. To see how your browser applies this command, you'll enter
the script element and command into Kate's mpl.htm file now.
1. Return to the mpl.htm file in your text editor.
2. Locate the table cell after the entry for Catherine Adler and insert the following
code, as shown in Figure 10-8: