SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    SitePoint Addict
    Join Date
    Apr 2004
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Advantages of coding in XHTML

    Hello, I have to redesign a big site that works with a database, and I was wondering if I can have some advantage of coding it in XHTML instead of HTML.
    I also want to know if it is better thinking in small screen browsers (I mean, if I plan that this site can be viewed in PDAs or cell phones in the future).
    Thank you very much for your opinions

  2. #2
    Non-Member Egor's Avatar
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    7,305
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    I really don't know the advantages of xhtml, but it's the standard mark up language these days and I don't see a reason not to use it. The changes are very minor anyway.

  3. #3
    SitePoint Wizard
    Join Date
    Oct 2001
    Posts
    2,686
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    XHTML is a combination of HTML and XML. XML is a markup language where everything has to be marked up correctly. That results in "well formed" documents. Many of todays www pages contain "bad" HTML and they "gets away with it".

    Today's market consists of different browser technologies on computers, phones and handhelds. Some of these devices doesn't have the power or resources to render "bad" markup.

    XHTML gives the opportunity to write "well formed" markup that is compatibel with today's/future browser (XML supported browsers) and is also backward browser compatible.

    -Helge

  4. #4
    SitePoint Member starleos's Avatar
    Join Date
    Mar 2004
    Location
    Spain
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    have a look at this article as well.

    http://shadyland.theward.net/archive...y_xhtml_11.php

  5. #5
    Wanna-be Apple nut silver trophy M. Johansson's Avatar
    Join Date
    Sep 2000
    Location
    Halmstad, Sweden
    Posts
    7,400
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    <Proper terms nazi>XHTML and HTML is not code, goddamit! It's markup. Not code. Code is program logic, HTML does not.</Proper terms nazi>
    Mattias Johansson
    Short, Swedish, Web Developer

    Buttons and Dog Tags with your custom design:
    FatStatement.com

  6. #6
    SitePoint Addict
    Join Date
    Apr 2004
    Posts
    263
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks all for your help
    M. Johansson, you are right, it's markup language, but a lot of people call code to all.... anyway, you understood what I meant, so I would also like your opinion...

    PS.
    Forum Rules:
    You may post new threads
    You may post replies
    You may post attachments
    You may edit your posts HTML "code" is Off
    vB code is On
    Smilies are On
    [IMG] code is On

  7. #7
    SitePoint Addict will_'s Avatar
    Join Date
    Apr 2004
    Location
    Asheville, NC
    Posts
    206
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by M. Johansson
    <Proper terms nazi>XHTML and HTML is not code, goddamit! It's markup. Not code. Code is program logic, HTML does not.</Proper terms nazi>
    <ProperGrammarNazi>XHTML and HTML are not code, goddammit! They are markup, not code. Code is program logic, HTML is not.</ProperGrammarNazi>


  8. #8
    Wanna-be Apple nut silver trophy M. Johansson's Avatar
    Join Date
    Sep 2000
    Location
    Halmstad, Sweden
    Posts
    7,400
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Whoops.
    Mattias Johansson
    Short, Swedish, Web Developer

    Buttons and Dog Tags with your custom design:
    FatStatement.com


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
  •