SitePoint Sponsor

User Tag List

Results 1 to 9 of 9

Threaded View

  1. #1
    SitePoint Evangelist winterheat's Avatar
    Join Date
    Aug 2007
    0 Post(s)
    0 Thread(s)

    why are we using XHTML DOCTYPE and <img /> tags when XHTML not supported by IE 6 & 7

    So i think the consensus is that IE 6 and 7 (and 8?) do not support XHTML rendering. Only Firefox, maybe Chrome, and other browsers support it.

    So the question is, why are we using XHTML DOCTYPE and those self-closing tags like <img /> when XHTML is not supported by IE 6 & 7 ? are we making a "hopeful" attempt? trying to make something that is a standard, but when 60&#37; or 2/3 of the browsers in use are not supporting it?

    For example, Facebook is using it. Even SitePoint's Forum pages are using it. Usually I just use HTML 4.01... but when writing Facebook pages, I sometimes will use XHTML format... as least if Facebook gets the content and parses it, it can understand XHTML and that's understandable... but Facebook is serving the content to general users again with a DOCTYPE of XHTML too... and even SitePoint or is serving its pages to IE 7 with a DOCTYPE of XHTML. that's kind of weird, isn't it? thanks.
    Last edited by winterheat; Apr 18, 2009 at 06:11.


Posting Permissions

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