• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DOCTYPE tag alternatives?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DOCTYPE tag alternatives?


  • Subject: Re: DOCTYPE tag alternatives?
  • From: Jerry Porter <email@hidden>
  • Date: Wed, 15 Dec 2004 09:11:59 -0700

Hello,

I use:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

To verify what your doc type should be. I would suggest running your source html
from your browser using html tidy (http://www.w3c.org/People/Raggett/tidy/)
and see what it reports.


Also I would put the DOCTYPE in a wrapper component so all of your pages get the DOCTYPE.
This saves you from having to put it in each component page's html file.


Also if you don't already use tidy, I would recommend it for checking the conformance of
your rendered html source.


You can then fix the problems in your components (for the most part) but it is problematic on
the Apple components.



On Dec 15, 2004, at 08:25, Kieran Kelleher wrote:

What HTML 4 DOC TYPE tags can be used in my WebObjects components
safely?

WebObjects HTML template uses this as default:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">

Are any of you using one of these for example or an XHTML doc type and
does the auto-generated WO HTML comply?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd";>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd";>

Is there advantages to using one of the newer ones (for example to get
better standards rendering of my CSS?

Comments or experiences appreciated....

-Kieran

________________________________________________________________
Dev Config = OS X 10.3.5 / Java 1.4.2_05 /  WO 5.2.3 / XCode v1.5 /
MySQL 4.0.20 / Connector-J 3.0.11
Deploy Config = OS X 10.3.5 Server / Java 1.4.2_05 / WO 5.2.3 / MySQL
4.0.20 / Connector-J 3.0.11
My Blog: http://webobjects.webhop.org/

<ATT6220767.txt>
Jerry E. Porter
Software Engineer
Wireless Matrix Corporation
102, 1530 - 27th Ave. NE
Calgary, Alberta, Canada
T2E 7S6
Main: 1-403-250-3949
Fax: 1-403-250-8163
email@hidden
http://www.wirelessmatrixcorp.com


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >DOCTYPE tag alternatives? (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: DOCTYPE tag alternatives?
  • Next by Date: Re: help - multiple users are getting the same session
  • Previous by thread: DOCTYPE tag alternatives?
  • Next by thread: Calendar with WebObjects
  • Index(es):
    • Date
    • Thread