www.webdeveloper.com
Results 1 to 5 of 5

Thread: XHTML for Web Pages

  1. #1
    Join Date
    Jan 2004
    Location
    Washington DC
    Posts
    1,107

    XHTML for Web Pages

    Why are developers using XHTML to layout web pages? I don't understand this. XHTML is a great way to standardize code but standardization can also be accomplished using HTML Strict and Transitional DOCTYPES. XHTML is great for web applications but not web pages.

    I work in a development firm and in all honesty, 90% of the HTML builders here don't understand or know squat about valid DOCTYPES more or less XHTML. They asked me to build out a site for them; I used HTML Strict as the DOCTYPE. Lo and behold, the other developers are looking at the CSS layout and the DOCTYPE while scratching their heads trying to understand.

    I do my best to program using standards but it appears to me that in the real working world, DOCTYPES and Valid markup are not common practice. All these *newbies* that are learning using XHTML and so proud that their page validates the W3C validator, are missing the big picture in web development. XHTML is a tool to help standardize web development but in my opinion, does not provide the most flexibility for web design. Someone will argue this so feel free to contribute your thoughts.
    Bittersweet web development.

  2. #2
    Join Date
    Jul 2005
    Posts
    15
    XHTML is the current latest version of HTML, so it is can be called HTML 5.0

    Eventually everyone will use it. However IE 6 does not support entirely XHTML so in real life it might be better to use HTML.

    However newbies should be encouraged to learn XHTML
    --------------------------------------------------
    Visit

    http://www.kaizenlog.com

  3. #3
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,933
    Quote Originally Posted by pmusu
    XHTML is the current latest version of HTML, so it is can be called HTML 5.0
    ...
    Not really. XHTML is an extension to HTML designed to provide XML support.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  4. #4
    Join Date
    Jan 2004
    Location
    Washington DC
    Posts
    1,107
    Ok, so why use it???? HTML is more flexible for page layout; XML is more flexible for defining data. So what if it can render as XML. Why would someone want to parse an XHTML document as XML? The Javascript DOM can parse an HTML page just the same as an XML page. Why not just use XML alone...because browsers don't fully support XML integration?! Then the question again is, why use XHTML?
    Bittersweet web development.

  5. #5
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    18,933
    Personally, I haven't run into a reason to use XHTML yet, so I've stuck to HTML 4.01 Strict. If some day I find a reason to convert to XHTML, HTML Tidy can do the conversion quite easily and effectively for me.
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles