SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Thread: XHTML or HTML4

  1. #1
    BoOm-Rocka! Smarky's Avatar
    Join Date
    Jun 2000
    Location
    England
    Posts
    1,319
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XHTML or HTML4

    What do you think we should be doing new sites in. XHTML or HTML 4.

    What are the benefits of XHTML? And will switching to it cut out browser compatibility.
    Garlic bread, I've tasted it, it's the future

  2. #2
    Grumpy Mole Man Skunk's Avatar
    Join Date
    Jan 2001
    Location
    Lawrence, Kansas
    Posts
    2,066
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    XHTML is more future proof, simple as that. Having recently discovered the joys of CSS based layout with XHTML (like cutting the amount of HTML needed for a page by at least half) I am a total convert - I intend to work with XHTML and CSS from now on for as many projects as possible. The cutting edge of web development (in my opinion at least) is XHTML and CSS coded to the W3 standards. Code for the standards and the browsers will catch up. Code with nasty table layout hacks and invalid markup and 2 or 3 years from now your pages may be inaccessible to a significant percentage of devices being used to access the web.

    As for browser compatibility, provided you use the CSS @import rule to "hide" your style sheets from older browsers you should be fine with pretty much everything.

  3. #3
    BoOm-Rocka! Smarky's Avatar
    Join Date
    Jun 2000
    Location
    England
    Posts
    1,319
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok thanks maybe I will check it out. I hope dreamweaver MX has good support for it
    Garlic bread, I've tasted it, it's the future

  4. #4
    long gone but not forgotten AljapaCo's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Xhtml all the way! It's been standard since Jan 01 and since I started to use it, combined with a global css file and SSI I don´t have any code left *ROTFL*

    Seriously though, the code is reduced by 2/3's!!
    T O B I A S - S T R A N D H | visit my site here
    OPERA7 /MSIE6 /FireFox 1.1/Win2000 /ADSL /17" Screen /1024x768
    god doesn't create genius, he clones me.............

  5. #5
    long gone but not forgotten AljapaCo's Avatar
    Join Date
    Aug 2001
    Location
    Sweden
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I hope dreamweaver MX has good support for it
    You know what...
    MS Notes has fabolous support for Xhtml
    T O B I A S - S T R A N D H | visit my site here
    OPERA7 /MSIE6 /FireFox 1.1/Win2000 /ADSL /17" Screen /1024x768
    god doesn't create genius, he clones me.............

  6. #6
    SitePoint Enthusiast AlbinoRhyno's Avatar
    Join Date
    Feb 2002
    Posts
    33
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With Homesite 5's Codesweeper, XHTML coding is a breeze. Anything you forget (e.g. alt tags for every graphic), the codesweeper fixes or reminds you of.

    I concur - no reason to not do a xhtml/ssi/css solution for any new site, and add php for anything medium to large.

  7. #7
    SitePoint Wizard silver trophy redemption's Avatar
    Join Date
    Sep 2001
    Location
    Singapore
    Posts
    5,269
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by Smarky
    Ok thanks maybe I will check it out. I hope dreamweaver MX has good support for it
    yes actually it does... if you specify your DOCTYPE as XHTML, any added code would be XHTML-compliant... for example the <br> tag would normally appear as <br> if it's a HTML document but if you specify your DOCTYPE as XHTML, it would add it as <br />... attributes are also XHTML-compliant... if you check the nowrap field for a table cell and take a look at the code, it'd add
    Code:
    nowrap="nowrap"

  8. #8
    <C²: web standards /> cybercodeur's Avatar
    Join Date
    Dec 2001
    Location
    Montréal
    Posts
    729
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I agree with everyone regarding XHTML and CSS used together. As soon as you start using them seriously, the amount of code required to get the job done is dramatically reduced. Everything is forwards (and backwards ) compatible if you use XHTML 1.0 transitional and you also have the undescribable feeling of accomplishment of being on the cutting edge of Web design. What else can you ask for?

    As for being able to render properly in old browsers it's only a matter of caring enough to double code your style sheets using one with @import for DOM browsers and another one plain and simple for such old things as NS4 and you're all set.
    Denis Boudreau <C²/> - Web Standards & Accessibility
    [+] ICQ number: 115649885 || Email: denis@cybercodeur.net
    [+] Daily Weblog on Web standards and accessibility : CYBERcodeur.net

  9. #9
    ********* Genius Mike's Avatar
    Join Date
    Apr 2001
    Location
    Canada
    Posts
    5,458
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    about that @import thingie, can i have the first line in my css doc be an @import for forms and newere brosers, or should i just link to both from the main page

    eg-

    @import...

    link rel....
    Mike
    It's not who I am underneath, but what I do that defines me.

  10. #10
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dreamweaver MX is fully xHTML compliant.
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


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
  •