You are here: Re: Mixing doctypes « HTML « IT news, forums, messages
Re: Mixing doctypes

Posted by Nikita the Spider on 10/13/06 18:11

In article <4p99chFhu50sU1@individual.net>, JWL <user@example.net>
wrote:

> Hi
>
> Is it OK to mix doctypes on the same site, just to get everything to
> validate? For example, my site is in strict HTML but HTML injected by
> FCKEditor is using the width attribute on tables etc., which of course
> won't validate as strict HTML. If I stick a loose DTD on that page, it
> will validate but is this a good thing to do?

It's OK to have multiple doctypes on one site. In fact, most sites do.
However, the one really shouldn't be creating new pages with the
transitional DTD. That DTD was meant to allow HTML authors to write
valid pages while coping with the browsers of that time (seven years
ago!) which were not so CSS savvy. Nowadays new pages really ought to be
strict, not transitional. So the best solution would be to get an editor
that doesn't create gunky HTML for you, but I realize that that wasn't
the question you asked. =)

--
Philip
http://NikitaTheSpider.com/
Whole-site HTML validation, link checking and more

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация