Fotiman - 5:12 pm on Nov 10, 2006 (gmt 0)
1.) How do you know for sure if a page has triggered quirks mode? When I try to validate the page using the W3 validator, I get, "This page is not Valid XHTML 1.0 Transitional!"
If you don't have a complete DOCTYPE declaration, including the URI, then IE will be in quirks mode. If you use a fully qualified DOCTYPE, then IE will not be in quirks mode. Any of these will cause IE to get out of quirks mode:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2.)Why choose XHTML 1.0 Transitional versus HTML 4.01 Transitional?
Most developers should NOT be using XHTML. If you're not sure if you need XHTML, then you don't need it (you would know if you did). There's a good read here on the topic:
3.) Do validation errors automatically trigger quirks mode in IE6?