Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Mixing doctypes
October 13, 2006, 10:50 am
rate this thread
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?
- Nikita the Spider
October 13, 2006, 6:11 pm
Re: Mixing doctypes
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. =)
Whole-site HTML validation, link checking and more
- » Can you format table contents from an outer DIV tag?
- — Next thread in » HTML Markup Language