This is a discussion on "Validating XHTML - Am I choosing the right doctype?" within the Web Page Design section. This forum, and the thread "Validating XHTML - Am I choosing the right doctype? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
Validating XHTML - Am I choosing the right doctype?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Validating XHTML - Am I choosing the right doctype?
Hi,
I have just read this article: http://webkit.org/blog/?p=68 ...which, if I am reading it right, makes me think I have been using thr XHTML dictype incorrectly? The code for my home page is:
I am very confused!! Thanks for any help! Steve Last edited by karinne; Sep 11th, 2007 at 15:12. Reason: The HTML vbCode is not working properly so I changed it to the simple code one ;) |
|
|
|
||||
|
Re: Validating XHTML - Am I choosing the right doctype?
So it works/looks correctly and validates,
but you're not convinced?
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
|
|
|||
|
Re: Validating XHTML - Am I choosing the right doctype?
You are 100% correct! *Gives standing ovation!*
The ultimate goal is to use XHTML Strict 1.0. If you can validate and code for that, you are doing great! HTML transitional is a doc type to use for the widest range of browsers including all the oldies. If you support the use of the old browsers then I suppose you'd be better off using html transitional. However if you are coding for nothing older than IE5, than you are on the right track. Keep it up! |
|
||||
|
Re: Validating XHTML - Am I choosing the right doctype?
Here's a great article that might help - Choosing the best Doctype for your website
|
|
|||
|
Re: Validating XHTML - Am I choosing the right doctype?
Quote:
In practical terms, there's nothing wrong with using XHTML 1.0 Strict. Browsers should cope just fine with it. There are potential pitfalls, but they are quite specific and you probably won't encounter them. Strictly speaking, however, browsers will interpret your XHTML as HTML (because you told them to do this, when you specified "text/html"). Since XHTML code does not validate as HTML, they will activate their error correction routines to work out how they should render your website. This would be a big problem if their error correction routines were weak. But since their error correction routines are very strong -- they can cope with much nastier invalid code than yours -- you should be fine. But if you want to be absolutely sure, use HTML 4.01 Strict. |
![]() |
| Tags |
| doctype |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| which doctype?? | geyids | Web Page Design | 11 | Mar 13th, 2008 02:18 |
| which doctype? | aflacduck | Starting Out | 19 | Jun 17th, 2007 19:34 |
| Doctype or no Doctype | notagz1 | Website Planning | 6 | Jun 16th, 2007 01:11 |
| validating xhtml with ' ' | rocket468 | Web Page Design | 3 | Dec 31st, 2006 05:38 |
| Doctype | ahm531 | Web Page Design | 2 | Sep 6th, 2006 07:55 |