| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
| DesignersTalk > Recommended DTDs to use in your Web document. |
|
LinkBack | Thread Tools | Search this Thread |
|
|
#1 (permalink) |
|
Registered User
Join Date: Oct 2007
Posts: 4
|
When authoring document is HTML or XHTML, it is important to Add a Doctype declaration. The declaration must be exact (both in spelling and in case) to have the desired effect, which makes it sometimes difficult. To ease the work, i have listed DTD list in blogspot. Well I am new so I can post the URL so if any one needed the list message me here i will reply him thanks Mohammed Sunely |
|
|
|
|
|
#2 (permalink) |
|
trouble free and loverlee
Join Date: Mar 2003
Location: YooKay
Posts: 3,086
|
(If you're genuinely aiming to help people rather than looking for a way to attract visitors to your site you could simply post them here. Or you could post a link to any of the other online resources which list complete and correct doctypes.) Fwiw… No-one I know of actually types the DTDs out themselves and, imo, only the most masochistic developer would bother. Instead, they use the built-in facilities of their chosen text/code editor to automatically insert them or simply copy/paste them from earlier documents. Do you hand code your Doc-Type? I'm of the opinion that the only two current doctypes worth knowing and using are the HTML 4.01 Strict and XHTML 1.0 Strict doctypes. i.e. HTML 4.01 Strict Code:
XHTML 1.0 Strict Code:
Strict doctypes provide the most stable, consistent X/HTML development environment as well as encourage a greater level of separation between structure, presentation and behaviour/functionality. |
|
|
|
#4 (permalink) | |
|
FUNKTION GALLERY
Join Date: Jun 2008
Location: Toronto
Posts: 2,348
|
Quote:
Thats like asking, "is it better to drive a Pinto, or a Ferrari" XHTML vs HTML |
|
|
|
|
#5 (permalink) |
|
dt newbie
Join Date: May 2008
Posts: 83
|
Faster, that's not really a valid comparison. There is absolutely nothing wrong with html. actually last week i read an interesting article on the subject: Siding with HTML over XHTML, My Decision to Switch - Monday By Noon Personally, I use html strict in 95% of cases. |
|
|
|
#6 (permalink) |
|
FUNKTION GALLERY
Join Date: Jun 2008
Location: Toronto
Posts: 2,348
|
There's also nothing wrong with a Pinto But a ferarri is just so, much, better. They both get the job done, but one looks better than the other, and I prefer the stringent rules for writing XHTML because I am a perfectionist. |
|
|
|
#9 (permalink) |
|
Sans Comic
Join Date: Aug 2007
Location: Yokohama, Japan
Posts: 7,299
|
While I use XHTML myself, and intend to continue to do so, I have been swayed over the last few months into pretty much agreeing with the HTML crowd that there isn't any particular reason to, as pretty much everyone serves XHTML as HTML anyways. And if you are using HTML strict, it's strict, so there is no saying that XHTML strict follows stricter guidlines. It just follows different guidelines. |
|
|
|
#11 (permalink) |
|
I'm not really a snail
Join Date: Jul 2008
Location: Sydney
Posts: 54
|
The difference from my experience is that certain DTDs switches the browser between quirks mode and strict/compliance mode. If you need backwards compatibility you would use an older DTD to force the browser into quirks mode. If the strict/compliance mode is available in the browser, if you use XHTML strict it forces the browser to comply to standards. If most cases you wont notice it but when you get a 'quirky' problem the DTD can be an issue. |
|
|
|
#12 (permalink) |
|
Web Developer
Join Date: Jul 2008
Location: United States
Posts: 141
|
Maybe, but we all "love" IE. Rexibit Web Services
Don't just build it - CSS it. |
|
|
|
#13 (permalink) | |
|
or just Kris
Join Date: Jun 2005
Location: Brussels - Belgium
Posts: 174
|
Quote:
[Invalid] Markup Validation of http://www.maybe-tomorrows-ashes.com/ - W3C Markup Validator |
|
|
|
|
#14 (permalink) |
|
Web Developer
Join Date: Jul 2008
Location: United States
Posts: 141
|
Oooo lol. Rexibit Web Services
Don't just build it - CSS it. |
|
|
|
#15 (permalink) | |
|
What happened?
Join Date: Jul 2008
Posts: 1,895
|
Quote:
But I suppose I use XHTML just because I like the syntax. Feels more logical than HTML. And it allows me to make less mistakes when writing in other XML languages... By the way the HTML 4.01 DTD will also cause standards compliance mode. |
|
|
![]() |
|