...

View Full Version : elements deprecated about css3



EdwardKing
08-01-2011, 10:52 AM
I learn from css3 book,some elements deprecated,and no longer valid,such as bgcolor,I want to know if I use css3 under html5 files,these deprecated elements whether can work well?

Thanks

VIPStephan
08-01-2011, 10:54 AM
Why would you want to use deprecated elements/attributes anyway? There is a reason why they are deprecated.

EdwardKing
08-01-2011, 11:00 AM
Why would you want to use deprecated elements/attributes anyway? There is a reason why they are deprecated.

because only IE9 and some other explores can support CSS3,XP OS can only use IE8 and can't install IE9,so I only use CSS2 and there are some deprecated elements/attributes in it,someday,when more and more people change XP to window7,they can use IE9 or IE10. I want to know whether deprecated elements/attributes can run well under HTML5,I am puzzled with it.
Thanks

VIPStephan
08-01-2011, 11:35 AM
OK, I think you’re confusing something here:


HTML and CSS are two totally independend languages and what is deprecated in one doesn’t affect the functionality of the other.
HTML 5 and CSS 3 are not even official standards yet, they are currently under development so actually you shouldn’t rely on these versions to create your websites anyway.
HTML 4/XHTML 1 and CSS 2.1 are the latest and current official versions to be used for production websites. And everything that used to work in these versions of these languages will still be working in the next versions as HTML 5 is basically just HTML 4 with a few new elements and attributes as CSS 3 is CSS 2.1 with some new properties.


You are safe to use HTML 4/XHTML 1 and CSS 2 for at least the next five years to come. You can use the experimental HTML 5 and CSS 3 but be aware that non-supported elements, attributes, and CSS properties will simply be ignored. It’s your obligation to make your websites as backwards compatible as possible.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum