F.3. First XHTML Example
In this appendix and the next, we present XHTML markup and provide screen captures that show how Internet Explorer renders (i.e., displays) the XHTML. Every XHTML document we show has line numbers for the reader’s convenience. These line numbers are not part of the XHTML documents.
 This appendix’s examples are available at www.deitel.com/books/vbforprogrammers2.
Our first example (Fig. F.1) is an XHTML document named main.html that displays the message “Welcome to XHTML!” in the browser.
Figure F.1. First XHTML example.
1 <?xml version = "1.0"?> 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" 3 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 4 5 <!-- Fig. F.1: main.html --> 6 <!-- Our first Web page --> 7
Get Visual Basic 2005 for Programmers: Deitel Developer Series, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.