Real Estate Forums
| Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here. |
![]() |
|
|
Thread Tools | Display Modes |
|
||||
|
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".this is my template page: http://www.lipplyrealestate.com/blank2.php Thanks to all for any help. |
|
|||
|
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"> |
|
||||
|
Thank you!
|
|
|||
|
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; } |
|
||||
|
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"> |
|
|||
|
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> |
|
||||
|
thank you so much! I will try this later today. I really appreciate your help.
|
|
|||
|
Quote:
Code:
<body style="background-color:#000045; margin-top:0; margin-left:0;"> Code:
body {background-color:#000045; margin-top:0; margin-left:0;}
|
|
||||
|
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> |
![]() |
| Thread Tools | |
| Display Modes | |
|
|