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

Chapter 23. XHTML Basic > Designing for the Real World

Designing for the Real World

Creating and Deploying an XHTML Basic Document

You can put XHTML Basic to work today. To do so, follow these steps:

  1. Create an XHTML Basic Document. Begin with the DOCTYPE declaration:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
    "xhtml-basic10.dtd" >
    
  2. Add the html root and namespace element:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
    "xhtml-basic10.dtd" >
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
    </html>
  3. Add the head and title element to the document:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
    "xhtml-basic10.dtd" >
    
    <head>
    <title>My First XHTML Basic Page</itle>
    </head>
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
    </html>
  4. Add the body element:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
    "xhtml-basic10.dtd" >
    
    <head>
    <title>My First XHTML Basic Page</itle>
    </head>
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
    
    <body>
    
    </body>
    </html>
    
  5. Add content (I've kept mine simple):

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
    "xhtml-basic10.dtd" >
    
    <head>
    <title>My First XHTML Basic Page</itle>
    </head>
    
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
    
    <body>
    
    <h2>Welcome to Molly's Wireless Web</h2>
    <p>Here you will find:</p>
    
    <ul>
    <li>Book Updates</li>
    <li>Speaking Engagements</li>
    <li>Contact Information</li>
    </ul>
    
    <a href="next.html">Follow this link to continue</a>
    </body>
    
    
    </html>
    
  6. Save the file as index_basic.html.

  7. Upload to your Web server. If you have a PDA or other alternative device, look up the page using that device and test it out.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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