• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XHTML or HTML?

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am in the process of establishing a HTML coding standard for my group. We will use this for our JSP standards as well. I need to determine if I should make our standard XHTML 1.0 or use HTML. What are the pros and cons of XHTML? Furthermore, should we use the Strict, Transitional, or Frameset DTD?
FYI, we have internet and intranet sites to maintain, as well as JSP based apps that run on WebSphere Application Server 4.0.3.
Your feedback is greatly appreciated.
 
Ranch Hand
Posts: 1056
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The primary advantage of XHTML is that you can use XML tools such as DOM, SAX, and XSLT to parse and manipulate it.
 
Ranch Hand
Posts: 4716
9
Scala Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i would stick to html for the internet site. im not sure of the support for xhtml in the different browsers.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are only worried about "modern" browsers (in other words, not Netscape 4.x), XHTML is supported by IE5+, Netscape 6+ and all Mozilla-based browsers.
Not sure about other marginal browsers like OmniWeb.
While I would advocate using XHTML if at all possible, be aware that "Strict" is very much so.
If for whatever reason you decide to stay with HTML, I'd advise you to follow the XHTML rules as much as poosible (lowercase elements, quote all attributes, and so on).
hth,
bear
 
verduka fox
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am considering using XHTML with the Transitional DTD since the strict DTD isn't supported very well. Is this supported in all popular browsers? What is your recommendation?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic