SitePoint Sponsor

User Tag List

Page 4 of 4 FirstFirst 1234
Results 76 to 88 of 88
  1. #76
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,159
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by rsteven View Post
    Ok so as I am about to spent alot of time becoming proficient at coding strict standards compliant websites what do you recommend I learn?
    HTML 4.01 Strict (plus CSS 2.1 and DOM Level 2).
    It's the latest recommendation that is reasonably well-supported by contemporary browsers.

    Quote Originally Posted by rsteven View Post
    However deep down I feel like I will be missing out on something cool if I leave off the x :-)
    Believe me, you're not.

    Quote Originally Posted by rsteven View Post
    ...also I am planning to build alot of sites, perhaps a few hundred so if I go for XHTML but served as html would that be better in the long run? I could essentially change the way my pages are served to proper XML.
    It won't be better in the long run, but of course you can do it if you want to. Before you do, though, make sure that you really understand the profound differences between XHTML and HTML and study Appendix C of the XHTML 1.0 specification very carefully.

    Quote Originally Posted by rsteven View Post
    This way would I have more chance that the websites would be more future proof?
    No. If XHTML ever becomes useful, it won't be XHTML 1.x but some other version. It will most likely not be backwards compatible with HTML or XHTML 1.x, so you will have to rewrite your documents anyway if you want to 'upgrade'.

    Quote Originally Posted by zcorpan View Post
    Actually it doesn't; it requires support for either XSLT and HTML, or XHTML (supporting both will work fine, too).
    You're right. If the xml-stylesheet PI isn't supported, it will be handled as XHTML.

    Quote Originally Posted by zcorpan View Post
    Firefox 3 will support incremental rendering of XHTML (in the general case, at least).
    Living in the future as always.
    HTML5 will do this … CSS3 will provide that … Firefox 3 will support the other …
    Birnam wood is come to Dunsinane

  2. #77
    SitePoint Enthusiast
    Join Date
    Aug 2007
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks!

    I will go with your recommendations

    "HTML 4.01 Strict (plus CSS 2.1 and DOM Level 2).
    It's the latest recommendation that is reasonably well-supported by contemporary browsers."


  3. #78
    bronze trophy
    Join Date
    Dec 2004
    Location
    Sweden
    Posts
    2,670
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by AutisticCuckoo View Post
    Living in the future as always.
    HTML5 will do this … CSS3 will provide that … Firefox 3 will support the other …
    You bet!
    Simon Pieters

  4. #79
    SitePoint Enthusiast
    Join Date
    Apr 2008
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I just read some great FAQs about xhtml and html. You can look upto to it. Thanks.

  5. #80
    SitePoint Member moremony's Avatar
    Join Date
    Aug 2009
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Cool

    Hi all,

    What's the difference between the above standards?

    Which should be used in webpages?

    Thanks.

    Moremony services

  6. #81
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,604
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    All web browsers currently support HTML 3.2 + HTML 4.01 + proprietary tags of their own when the page is served as HTML.

    When the page is served as XHTML (which Internet Explorer 8 and earlier don't support) then the browsers support XHTML 1.0 transitional + proprietary tags of their own (which is basically the same as they support for HTML). Some browsers support some parts of XHTML 1.1 but no browsers support all of it.

    Since browsers only use the SGML doctype as a switch for standards mode all you really need to specify for the doctype regardless of which HTML version you are using is <!DOCTYPE HTML> and the browser will happily accept any HTML 3.2, HTML 4.01 or XHTML 1.0 tags you might use.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  7. #82
    SitePoint Member
    Join Date
    Jul 2009
    Posts
    7
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I use XHTML 1.0 Strict so often that I tend to consider it the default for everything.

  8. #83
    SitePoint Member
    Join Date
    Dec 2009
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is XHTML 1.1 backward compatible?

  9. #84
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by jrosesr View Post
    Is XHTML 1.1 backward compatible?
    Yes and no. As Tommy says, it's not backwards compatible with HTML:
    Quote Originally Posted by AutisticCuckoo
    If you serve the document as text/html, don't even think about using XHTML 1.1. It is not backwards-compatible with HTML and should not be served as text/html.
    One might says it's backwards compatible with XHTML 1.0, but there's not much reason to use it. I recommend you stick with XHTML 1.0 and HTML 4.01 for now.
    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.

  10. #85
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,604
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by jrosesr View Post
    Is XHTML 1.1 backward compatible?
    XHTML 1.1 can only be served as XHTML and not as HTML and so it is not backwards compatible with browsers such as Internet Explorer 9 and earlier which do not support XHTML.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  11. #86
    SitePoint Guru
    Join Date
    Nov 2001
    Location
    Fort Lauderdale
    Posts
    814
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    When the page is served as XHTML (which Internet Explorer 8 and earlier don't support) then the browsers support XHTML 1.0 transitional + proprietary tags of their own (which is basically the same as they support for HTML). Some browsers support some parts of XHTML 1.1 but no browsers support all of it.
    Does this mean if I strict xhtml doct type, I will run into issues with IE8 and IE7 ? Do you know how IE9 is affected by this?

    Thank you in advance.

  12. #87
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,604
    Mentioned
    24 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by 4SeeN View Post
    Does this mean if I strict xhtml doct type, I will run into issues with IE8 and IE7 ? Do you know how IE9 is affected by this?

    Thank you in advance.
    IE9 does support XHTML but I am not sure as to which versions of XHTML it supports. I will be waiting until the browser is actually released before determining that as there is still the possibility of changes while it is still in beta.

    IE8 and earlier will offer XHTML files for download unless you tell the browser to treat it as HTML or XML rather than as XHTML.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  13. #88
    SitePoint Guru
    Join Date
    Nov 2001
    Location
    Fort Lauderdale
    Posts
    814
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for your quick reply!


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
  •