Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2005
    Posts
    44
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question elements deprecated about css3

    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

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,700
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    Why would you want to use deprecated elements/attributes anyway? There is a reason why they are deprecated.

  • #3
    New Coder
    Join Date
    Jun 2005
    Posts
    44
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question

    Quote Originally Posted by VIPStephan View Post
    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

  • #4
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,700
    Thanks
    6
    Thanked 1,011 Times in 984 Posts
    OK, I think you’re confusing something here:

    1. HTML and CSS are two totally independend languages and what is deprecated in one doesn’t affect the functionality of the other.
    2. 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.
    3. 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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •