SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: Xhtml 2.0

  1. #1
    SitePoint Evangelist Ian R. Gordon's Avatar
    Join Date
    Feb 2004
    Location
    New York
    Posts
    474
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Xhtml 2.0

    "Although XHTML 2.0 isn't ready for general use yet, understanding how the changes will affect your writing and code will be key to a smooth transition. With full XForms integration, separation of content and function, and other features, XHTML 2.0 promises to revolutionize the Web when XHTML 2.0 arrives."
    http://www.devarticles.com/c/a/HTML/...2.0-Explained/

    With XHTML going in a new direction and severing backwards compatibility with HTML, we seeing a new standard emerge. This isn't something completely new, rather it is a stricter enforcement of the previous standards along with some new additions. Hopefully, in this instance we do away with "transitional" and "strict" and just have one "strict" and complaint.

    I was wondering what anyone thought, about the matter and just for the sake of showing how a page would look, I have included some XHTML 2.0 markup.

    Code:
    
    
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 2.0//EN"
    "http://www.w3.org/MarkUp/DTD/xhtml2.dtd">
      <html xmlns="http://www.w3.org/2002/06/xhtml2/">
        <head>
          <title>Title of Document</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        </head>
        <body>
          <section>
            <p>This is just an example</p>
          </section>
          <section>
            <ul>
              <li>Item One</li>
              <li>Item Two</li>
            </ul>
          </section>
        </body>
      </html>
    
    Ian Gordon
    CSS / XHTML / PHP Programmer
    http://www.iangordon.us

  2. #2
    SitePoint Wizard drhowarddrfine's Avatar
    Join Date
    Aug 2005
    Posts
    3,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It's rather useless since it isn't implemented yet and you are serving it as html anyway so why bother?

  3. #3
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    How is that any better than this HTML4?:
    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
    <title>Title of Document</title>
    <p>This is just an example.
    <ul>
     <li>Item One
     <li>Item Two
    </ul>
    ...or, if you are an XML freak, this XHTML1?:
    Code:
    <html xmlns="http://www.w3.org/1999/xhtml>
     <head>
      <title>Title of Document</title>
     </head>
     <body>
      <p>This is just an example.</p>
      <ul>
       <li>Item One</li>
       <li>Item Two</li>
      </ul>
     </body>
    </html>
    Simon Pieters

  4. #4
    . shoooo... silver trophy logic_earth's Avatar
    Join Date
    Oct 2005
    Location
    CA
    Posts
    9,013
    Mentioned
    8 Post(s)
    Tagged
    0 Thread(s)
    Even if XHTML 2.0...whatever comes out there would be no point in switching. Nor will there be for years and years to come.


    *This one is using HTML4 and it works just fine*
    Logic without the fatal effects.
    All code snippets are licensed under WTFPL.


  5. #5
    SitePoint Evangelist Ian R. Gordon's Avatar
    Join Date
    Feb 2004
    Location
    New York
    Posts
    474
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was just providing an example, wanted to get some thoughts on a matter.
    Ian Gordon
    CSS / XHTML / PHP Programmer
    http://www.iangordon.us

  6. #6
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    *snorts* That article on XHTML 2.0 is over two years old, XHTML 2.0 still has working draft status, and I haven't heard that any of the main stream browsers have started implementing it yet.

    I'm much more interested in what the new HTML working group at the W3C will do.

    I still prefer HTML 4.01 Strict, myself.
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.

  7. #7
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    XHTML 2.0 will not be OK to serve as text/html, since it will not be compatible with HTML. Even XHTML 1.1 is incompatible with HTML and should be served as XML.
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •