Forum Moderators: open

Message Too Old, No Replies

Is there a preferred doctype?

..in case my page validates against both loose.dtd and strict.dtd..

         

paolodina

9:29 am on Dec 30, 2005 (gmt 0)

10+ Year Member



I already have chosen HTML over XHTML.

Now, which doctype should I choose between html strict and html transitional (and why)?

Thanks

Robin_reala

9:53 am on Dec 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Strict is the best if your page validates against it. Transitional was designed to help people in the transition from old presentational HTML through to new semantic HTML. If you've already done that then you should be using strict. That way it's be more obvious when you validate if you accidentally use a presentational element or attribute.

drhowarddrfine

3:55 pm on Dec 30, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Just to ditto what Robin has said.