• 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
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
Bartenders:
  • Himai Minh
  • Carey Brown
  • Frits Walraven

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: 67557
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?
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic