The differences between Xhtml and html Sitepoint.com reference article.

HTML references at Sitepoint.com

Download an Mobione iPhone emulator for windows at Genuitec.com

Download an iPhone emulator (iPhoney) for Macs at Marketcircle.com

Basic xhtml Rules

 

xhtml, Extensive Hypertext Markup Language is a subset of HTMLiphone displaying a web page

xhtml (Basic) is a sub-set of XML
and it is fast becoming the standard for cell phone web browsers

xhtml (Basic) rules

  1. Use lower case only for elements in source
  2. All elements must have a closing tag       

  3. HTML
    xhtml
    <BR>
    <br />
    <hr>
    <hr />
    <img>
    <img />
    <meta>
    <meta />

  4. Some characters are "Reserved" and must be replaced with a "coded entity" name
  5. A full list of Reserved Characters and their (x)html replacement name is listed at Elizabeth Castro's Web Site

    Table below lists common characters and their "name entities"...

    Character Entity Number Entity Name Description
    " &#34; &quot; quotation mark
    ' &#39; &apos; (does not work in IE) apostrophe 
    & &#38; &amp; ampersand
    < &#60; &lt; less-than
    > &#62; &gt; greater-than
    (empty space)  &#160; &nbsp; non-breaking space

  6. Nesting
     ebook-1Tags must be written in the proper "mirrored" order

    Incorrect xhtml nesting example:
    <p><strong>This is nested wrong</p></strong>

    Correct xhtml nesting example:
    <p><strong>This is nested correctly for xhtml </strong></p>
           
       
  7. Attributes must be written as name = "value"
    With the quote marks!
  8. Use "id" Instead of "name" The <a>, <frame>, and <img> elements have an attribute called <name> that is used to specity a location within the HTML page. In XML and xhtml the <id> attribute is used instead.