Guest stharmar Posted October 19, 2005 Share Posted October 19, 2005 hi, my question is, if i can use CSS with Transitional DTD. because it says on the webpage to use CSS with Strict DTD and use Transitional for readers who don't have browsers that support CSS. Link to comment Share on other sites More sharing options...
Jonas Posted October 19, 2005 Share Posted October 19, 2005 The point of the xhtml transitional doctype is that it's backwards compatible with html 4.01, so you can use both css: (example)body {background-color: #0000ff;}and html attributes:<body bgcolor="#0000ff"></body>I think if the browser reads css, it chooses the css over the attributes styling. That way, you can easily update your css to give one look, while giving a standard look for non-css browsers with attributes... Link to comment Share on other sites More sharing options...
Guest FirefoxRocks Posted September 16, 2007 Share Posted September 16, 2007 Yes, you can use CSS with (X)HTML Transitional. For transitional, you can include depreciated elements and presentational markup in your documents. Link to comment Share on other sites More sharing options...
croatiankid Posted September 16, 2007 Share Posted September 16, 2007 The point of the xhtml transitional doctype is that it's backwards compatible with html 4.01XHTML 1.0 (regardless of doctype) is backwards compatible with HTML 4.01. XHTML 1.1 is not. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now