BACK TO HOMEPAGE

BACK TO INDEX

The book is "XHTML in easy steps" by Mike Mcgrath
My ebook is written in html 4.0, in oct/novsome links are XHTML
  1. Introducing XHTML
    1. evolution - In the late 80's, HyperText Markup Language HTML was created. Now we have HTML 4.0. HTML has problems. So w3c came up with eXtensible HyperText Markup Language, XHTML.
    2. intro - At first cellphone etc. standards called for the WAP 1.0 spec using Wireless Markup Language (WML). WAP 2.0 abandoned WML and embraced XHTML. The w3c's XHTML 1.0 spec provides three Document Type Definitions the can be used to create XHTML web pages:
      • Strict DTD - the standard that should be used for all XHTML pages that only contain fully valid XHTML markup code.
      • Transitional DTD - the standard that can be used where a XHTML document also contains older HTML code that is not valid in the Strict DTD.
      • Frameset DTD - the standard that can be where frames are used to display XHTML pages in a multi-document web page. Small mobile devices do not usually have this capability so it is best to avoid using frames to display XHTML web pages.
      A special subset of XHTML 1.0 spec, is the XHTML Basic 1.0 spec. It has been adopted as the standard WAP 2.0, which is the agreed upon standard for cellphones and PDA's.
    3. tools - W3c.org has a free on line validator at http://validator.w3c.org/file-upload.html.
    4. simulators - simulators are also available for cellphone pages.Site forum.nokia.com is one, developer.openware.com is another.
    5. begining - As XHTML is an XML application each page should start with a XML declaration like; <?xml version=1.0 > The question marks mean it is a XML declartion. Optionally you can set the character set by using the encoding attribute like; <?xml version=1.0 encoding="ISO-8859-1">
      Each XHTML document must contain one of the following special DOCTYPE tag and show where the DTD is.
      • XHTML 1.0 STRICT
        <!DOCTYPE html PUBLIC
           "-//W3C//DTD XHTML 1.0 Strict//EN"
           "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
        
      • XHTML 1.0 Transitional
        <!DOCTYPE html PUBLIC
           "-//W3C//DTD XHTML 1.0 Transitional//EN"
           "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        
      • XHTML 1.0 Frameset
        <!DOCTYPE html PUBLIC
           "-//W3C//DTD XHTML 1.0 Frameset//EN"
           "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
        
      • XHTML 1.0 Basic 1.0
        <!DOCTYPE html PUBLIC
           "-//W3C//DTD XHTML Basic 1.0//EN"
           "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-basic10.dtd">
        
      Unless otherwise noted the last declaration is used in the following examples
    6. element - XHTML must adhere to the XML rule that each document must have one 'root' element that contains everthing else. The rrot element is always <html> and </html>. Optionally, an attribute to specify the language to be used. as in
      <html xml:lang="en">
      </html>
    7. structure - Two items appear between the <html xml:lang="en"></html> tags. The head and body. Inside the head tags <head >&</head>, are the title tags <title >&</title>. The first XHTML file "hello.html" shows a simple XHTML page.
    8. tips - Comments are the same as shown in this example
      <!-- comments -->
      <!--   or comments
               on   
              multilines -->

      Each XHTML tag must have a closing tag. For those empty tags in html a forward slash is added as in &ly;br/>. And remember to nest tags properly.

  2. Head information
  3. Body content
  4. Adding style
  5. Making lists
  6. Building tables
  7. Hyperlinks and anchors
  8. Embedding objects
  9. Using frames
  10. Creating forms
  11. Borders and margins
  12. Displaying content
  13. Stylish text
  14. Controlling backgrounds
  15. XHTML Mobile Profile
?

PeterK of [email protected]
This page last revised on 29oct4
©2004 PNK ALL RIGHTS RESERVED.
Hosted by www.Geocities.ws

1