Forum Moderators: open

Message Too Old, No Replies

Simple guide to Strict and Transitional DTDs?

         

John_Caius

9:44 pm on Jul 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've built a user interface in <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> with a mixture of divs and tables to solve layout problems in IE6, but I'm now considering modifying the code so that it lays out fairly normally in Opera and Mozilla. I've found that most of the compatibility problems appear to be elements of the Transitional doctype that aren't supported by Opera or Mozilla, so I'm going to try and restructure these bits of the code in a compatible way.

What I'm looking for is an understandable guide to the tags and attributes that aren't supported in Strict DTD but are supported in Transitional - I've looked at the formal W3C definitions but I just can't make sense of that huge page.

Any suggestions gratefully received... :)

Mohamed_E

10:19 pm on Jul 6, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



My primary reference for syntax is htmlhelp.com.

Under HTML 4.0 they have an alphabetical listing of the elements, and by clicking on a button you can toggle between displaying and hiding non-strict elements.

Similarly, under each element you can toggle between displaying all attributes and only displaying the strict ones.

I found it very useful when converting my site earlier this weekend.

Good luck with your conversion!

John_Caius

10:15 am on Jul 7, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's great - thanks for the tip! :)