+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: Markup Validation Service Question

  1. #1
    Join Date
    Nov 2005
    Location
    Tampa Bay Area, Florida
    Posts
    1,073

    Smile Markup Validation Service Question

    Can't remember who but one of the helpful members here recommended to me that I check all my pages with this site http://validator.w3.org/ before making them live. I am only working on a blank template page right now and was able to clean up about 30 errors-- . Can anyone enlighten me as to how to fix this one. As I am a "newbie" and the "how to fix" is greek to me.
    Error Line 34 column 32: there is no attribute "BACKGROUND".
    <td colspan="3" background ="images/topbg.gif" align="right">
    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.

    How to fix: check the spelling and case of the element and attribute, (Remember XHTML is all lower-case) and/or check that they are both allowed in the chosen document type, and/or use CSS instead of this attribute.
    this is my template page: http://www.lipplyrealestate.com/blank2.php

    Thanks to all for any help.

  2. #2
    Join Date
    Oct 2005
    Posts
    12

    Default Re: Markup Validation Service Question

    This error occurs because tags TD donīt allow you to put attribute background on it.

    You should do this with styles, like this:
    <td colspan="3" style="background: url(images/topbg.gif)" align="right">

  3. #3
    Join Date
    Nov 2005
    Location
    Tampa Bay Area, Florida
    Posts
    1,073

    Default Re: Markup Validation Service Question

    Thank you!

  4. #4
    Join Date
    Nov 2005
    Location
    Tampa Bay Area, Florida
    Posts
    1,073

    Default Re: Markup Validation Service Question

    thanks again, that worked. Another question: I am also getting errors for Leftmargin and Topmargin. Is it something similiar?

    Error Line 21 column 35: there is no attribute "LEFTMARGIN".
    <body bgcolor="#000045" leftmargin="0" topmargin="0">
    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.


    Error Line 21 column 49: there is no attribute "TOPMARGIN".
    <body bgcolor="#000045" leftmargin="0" topmargin="0">

  5. #5
    Join Date
    Oct 2005
    Posts
    12

    Default Re: Markup Validation Service Question

    You should do the same thing, using styles.

    Try to put it in your <style></style> tags before tag </head>

    body{ margin-left: 0px; margin-top: 0px; }

  6. #6
    Join Date
    Nov 2005
    Location
    Tampa Bay Area, Florida
    Posts
    1,073

    Default Re: Markup Validation Service Question

    I'm sorry I don't know what you mean at all. Here's my top code, could you show me?

    <meta name="robots" content="ALL">
    <LINK REL=STYLESHEET TYPE="text/css" HREF="style.css">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    </head>

    <body bgcolor="#000045" leftmargin="0" topmargin="0">

  7. #7
    Join Date
    Oct 2005
    Posts
    12

    Default Re: Markup Validation Service Question

    Your code should like this:

    <meta name="robots" content="ALL">
    <LINK REL=STYLESHEET TYPE="text/css" HREF="style.css">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <style type="text/css">
    body{ background-color:#000045; margin-left: 0px; margin-top: 0px; }
    </style>

    </head>

    <body>

  8. #8
    Join Date
    Nov 2005
    Location
    Tampa Bay Area, Florida
    Posts
    1,073

    Default Re: Markup Validation Service Question

    thank you so much! I will try this later today. I really appreciate your help.

  9. #9
    Join Date
    Mar 2005
    Location
    Key West, FL
    Posts
    499

    Default Re: Markup Validation Service Question

    Quote Originally Posted by Donna Lipply
    thanks again, that worked. Another question: I am also getting errors for Leftmargin and Topmargin. Is it something similiar?

    Error Line 21 column 35: there is no attribute "LEFTMARGIN".
    <body bgcolor="#000045" leftmargin="0" topmargin="0">
    You have used the attribute named above in your document, but the document type you are using does not support that attribute for this element. This error is often caused by incorrect use of the "Strict" document type with a document that uses frames (e.g. you must use the "Transitional" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheight" (this is usually fixed by using CSS to achieve the desired effect instead).

    This error may also result if the element itself is not supported in the document type you are using, as an undefined element will have no supported attributes; in this case, see the element-undefined error message for further information.


    Error Line 21 column 49: there is no attribute "TOPMARGIN".
    <body bgcolor="#000045" leftmargin="0" topmargin="0">
    I believe these tages are propriatary or have been depricated for the doc type you indicated. Use

    Code:
    <body style="background-color:#000045; margin-top:0; margin-left:0;">
    Better way is to put them in your style sheet like:

    Code:
    body {background-color:#000045; margin-top:0; margin-left:0;}

  10. #10
    Join Date
    Nov 2005
    Location
    Tampa Bay Area, Florida
    Posts
    1,073

    Default Re: Markup Validation Service Question

    I'm still struggling with this as I am html ignorant. Can someone tell me what type of doctype I have? This is the way my tags looked before I started messing with this. I blindly and probably stupidly made some changes. I did not originally write this website, I sort of inherited it and I am trying to improve it. Apparently, knowing what type of doctype you have before you try to clean up your code is important. Can anyone tell me (please and thank you) by looking at this?


    <html><!-- #BeginTemplate "/Templates/Main.dwt" -->
    <head>
    <meta http-equiv="Content-Language" content="en-us">
    <!-- #BeginEditable "doctitle" -->
    <title>Tampa Bay Real Estate | Clearwater St. Petersburg Real Estate | Pinellas County homes for sale</title>
    <meta name="title" content="Tampa Bay Florida Real Estate Clearwater Real Estate for sale and purchase - Lipply Real Estate" />
    <meta name="description" content="Tampa Bay Florida Real Estate, Clearwater Real Estate, including Pinellas, Hillsborough, and Pasco County Florida homes for sale and purchase through experienced Tampa realtors by Lipply Real Estate" />
    <meta name="keywords" content="Tampa bay florida real estate tarpon springs safety harbor pinellas hillsborough pasco clearwater florida real estate homes for sale, nice neighborhood" />
    <meta name="robots" content="ALL" />
    <meta name="revisit-after" content="5 days" />
    <meta name="document-classification" content="Real Estate" />
    <meta name="document-distribution" content="Global" />
    <!-- #EndEditable -->
    <LINK REL=STYLESHEET TYPE="text/css" HREF="style.css">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    </head>

+ Reply to Thread
Page 1 of 2 1 2 LastLast

Posting Permissions

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