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 3 of 3

Thread: backhour

  1. #1
    New to the CF scene
    Join Date
    Sep 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    backhour

    I have the below table cell in a page and and when I validate it with:
    <!doctype HTML public "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

    I get the following error
    Error: there is no attribute BACKGROUND for this element (in this HTML version)

    What does the validator not like? I hate so spend forever figuring it out, has any one run across this problem??




    <TD height="20" background="images/pi_horizlines.gif" colspan="6">&nbsp;</TD>

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    NL
    Posts
    421
    Thanks
    0
    Thanked 0 Times in 0 Posts
    "background" is a deprecated attribute in HTML 4.01. You should use CSS. Or another DTD (3.2). Or no DTD at all.

  • #3
    New to the CF scene
    Join Date
    Sep 2002
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks


  •  

    Posting Permissions

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