Solved

Microsoft Frontpage webpage getting invalid markup from W3C.

Posted on 2011-09-30
8
372 Views
Last Modified: 2013-12-24
I use Frontpage for my website at
www.americancarsuk.com
and I wanted to use a new backround colour for a table to give a nice effect, but I get the following message from W3C validation.

Validation Output: 1 Error
 Line 320, Column 148: there is no attribute "BACKGROUND"
…enter" cellpadding="25" bgcolor="#DBF7E6" background="tablegreen483762175.jpg">

If I use the identical  background picture  ( background="tablegreen483762175.jpg"> )
for the entire page layout I do not get an error from W3C, which makes me think the picture is ok to use on a page, but returns a fault when used for a table background.

Am I missing something silly here about the difference between Page backgrounds and Table backgrounds?
Cheers.
0
Comment
Question by:MalcolmBishop
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 4
8 Comments
 
LVL 29

Expert Comment

by:coreybryant
ID: 36891567
You will need to use CSS to help you layout the background images (Fromating a Cell in Expression Web).  HTML <table> Tag
0
 

Author Comment

by:MalcolmBishop
ID: 36891683
Sorry, don't understand the reply.
0
 

Author Comment

by:MalcolmBishop
ID: 36891727
Have to leave work, but will continue back here on Monday.
Cheers.
0
Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

 
LVL 29

Accepted Solution

by:
coreybryant earned 500 total points
ID: 36893847
You have:
<table border="1" cellspacing="4" width="70%" style="border:2px solid #008080; text-align: center" cellpadding="25" bgcolor="#DBF7E6" background="tablegreen483762175.jpg">

Open in new window

that will need to be changed to
<table cellspacing="4" style="border:2px solid #008080; text-align: center; background: #DBF7E6 url('tablegreen483762175.jpg'); width: 70%" cellpadding="25">

Open in new window

This will be using styles to control the background / width / border (which you were doing but you also had it as an attribute).  

That should at least get you validated with that DOCTYPE
0
 

Author Closing Comment

by:MalcolmBishop
ID: 36896225
Brilliant answer. I simply copied what coreybryant typed for me and it worked.
When I am back at work on Monday I will delve a little deeper into the answer and try to understand where my mistake was. The answer was excellent as it provided the perfect solution to my question, which is what EE is all about.
Thank you for taking the time to upload the new code.
Cheers.
0
 
LVL 29

Expert Comment

by:coreybryant
ID: 36896711
No worries, sorry that I did not type it in in my first post.

Frontpage will usually use HTML attributes for background images / colors and those attributes are no longer valid (you need to use CSS for the background images / colors)

I did copy what you had and my new code and the validator did validate it.  There is a lot of "extra" code that could be lessened with a stylesheet
0
 

Author Comment

by:MalcolmBishop
ID: 36902791
Thanks for your follow up comments.
I have made several new ammendments to my site using the code you supplied and I think it looks better with more colour on the pages, and more interesting for visitors.
I am going to work through all the dozens of pages on my site, and all the other car pages I build that are linked to this main site, there are about 25 individual web addresses that I build linked to cars etc., but I only do it on an amateur basis.
This main one has been around about number one on search engines for a while now, ( for the search term "American cars for sale" ) but I have self taught myself FrontPage over the last 8 years or so and don't understand the comments about HTML and CSS.
This is not any kind of criticism of yourself, please don't take it that way, it is simply that FrontPage is the only programme I have ever used, and as a pensioner I like to stick with what I know, although thanks to people like yourself at EE I am always expanding my knowledge.
If there are any articles explaining the differences between HTML and CSS I would be grateful to you, but I do understand this is extra effort on your part and you have already answered the question I originally started with.
Because I don't fully understand what I am doing on FrontPage I regularly upload changes to W3C and when I get error messages I just work backwards through their Fault Report until it passes.
Thank you again for all your help.
0
 
LVL 29

Expert Comment

by:coreybryant
ID: 36903176
I fully understand.  Personally, I was that way as well.  I was a Microsoft MVP for Frontpage.  When Expression Web came out, I voiced my concerns about this.  I understand the need to build a program to design a website with proper control, but if you take away some of the things the people have some to relied on (mainly those that used Frontpage Server Extensions)

That blog has a few general ideas that might help.  I think FPSE may no longer be supported next year (MS usually stops complete suport for a product after 10 years, so Frontpage XP (Frontpage 2002) should not be supported after next year.  

I guess one way to look at it is this: If you are a painter, the paint is HTML.  The CSS is your brush - it controls how the paint is going to be displayed, how much to display, etc.  

A couple of sites that helped me are http://www.w3schools.com/html/ and http://www.w3schools.com/css/ 

If you take a look at the code and what I removed (and how I replaced it), hopefully that might help as well some.  A lot of the attributes (width, height, border, background (color / images)) should renedered with CSS.
0

Featured Post

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
send as works in OWA, but not outlook client 8 140
Unable to view Outlook 2013 calendar 2 81
Column Spacing 3 114
Summernote required 3 242
Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
The purpose of this video is to demonstrate how to set up basic WordPress SEO. This will be demonstrated using a Windows 8 PC. The plugin used will be WordPress SEO by Yoast. Go to your WordPress login page. This will look like the following: myw…
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question