Jump to content

Transitional DTD


Guest stharmar

Recommended Posts

Guest stharmar

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

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

  • 1 year later...
Guest FirefoxRocks

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...