Real Estate Forums

Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here.

Reply
 
Thread Tools Display Modes
Old 11-26-2005, 06:11 AM
Dj's Avatar
Dj Dj is offline
Advanced Webmaster
 
Join Date: Nov 2005
Location: Tampa Bay Area, Florida
Posts: 1,071
Dj is on a distinguished road
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.
Reply With Quote
Old 11-28-2005, 02:20 AM
alfanet alfanet is offline
New real estate webmaster
 
Join Date: Oct 2005
Posts: 12
alfanet is on a distinguished road
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">
Reply With Quote
Old 11-28-2005, 07:23 AM
Dj's Avatar
Dj Dj is offline
Advanced Webmaster
 
Join Date: Nov 2005
Location: Tampa Bay Area, Florida
Posts: 1,071
Dj is on a distinguished road
Default Re: Markup Validation Service Question

Thank you!
Reply With Quote
Old 11-28-2005, 04:30 PM
Dj's Avatar
Dj Dj is offline
Advanced Webmaster
 
Join Date: Nov 2005
Location: Tampa Bay Area, Florida
Posts: 1,071
Dj is on a distinguished road
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">
Reply With Quote
Old 11-29-2005, 01:57 AM
alfanet alfanet is offline
New real estate webmaster
 
Join Date: Oct 2005
Posts: 12
alfanet is on a distinguished road
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; }
Reply With Quote
Old 11-29-2005, 04:05 PM
Dj's Avatar
Dj Dj is offline
Advanced Webmaster
 
Join Date: Nov 2005
Location: Tampa Bay Area, Florida
Posts: 1,071
Dj is on a distinguished road
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">
Reply With Quote
Old 11-30-2005, 04:10 AM
alfanet alfanet is offline
New real estate webmaster
 
Join Date: Oct 2005
Posts: 12
alfanet is on a distinguished road
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>
Reply With Quote
Old 11-30-2005, 05:20 AM
Dj's Avatar
Dj Dj is offline
Advanced Webmaster
 
Join Date: Nov 2005
Location: Tampa Bay Area, Florida
Posts: 1,071
Dj is on a distinguished road
Default Re: Markup Validation Service Question

thank you so much! I will try this later today. I really appreciate your help.
Reply With Quote
Old 11-30-2005, 05:58 AM
frobn frobn is offline
Real Estate Web Guru
 
Join Date: Mar 2005
Location: Key West, FL
Posts: 473
frobn is on a distinguished road
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;}
Reply With Quote
Old 12-11-2005, 03:09 PM
Dj's Avatar
Dj Dj is offline
Advanced Webmaster
 
Join Date: Nov 2005
Location: Tampa Bay Area, Florida
Posts: 1,071
Dj is on a distinguished road
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 With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

For our members

Main Sections

IDX Coverage Areas

Spiders Welcome

All times are GMT -7. The time now is 06:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.