Connecting Tech Pros Worldwide Forums | Help | Site Map

Fixing HTML Validation Errors

Newbie
 
Join Date: Jun 2007
Posts: 3
#1: Jun 27 '07
Hi,

using firefox browser and have a FrontPage built site: www.irenezart.com.

used W3C markup validation service which came up with lots of errors in my index page. then I changed the doctype to strict and the validator came up with even more errors! I'm not very HTML literate so the errors are foreign to me and i do not know what to do about any of this. I am wondering if it even matters since the site is working as of now. I'd appreciate any suggestions or help with those validation errors and/or any positive feedback that a non-technical guy can use.

Thanx,

jim

pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#2: Jun 27 '07

re: Fixing HTML Validation Errors


Changed thread title to better describe the problem.

Moving to the HTML forum....
drhowarddrfine's Avatar
Expert
 
Join Date: Sep 2006
Posts: 5,577
#3: Jun 27 '07

re: Fixing HTML Validation Errors


Unfortunately, FrontPage is a terrible code generator and has given you some very old style markup. Using the strict doctype is not appropriate here for that reason. Unfortunately, I am out of town and unable to help at this time.
Expert
 
Join Date: May 2007
Posts: 213
#4: Jun 27 '07

re: Fixing HTML Validation Errors


Post some code and the errors you get and I'll try to help out.
Newbie
 
Join Date: Jun 2007
Posts: 3
#5: Jun 29 '07

re: Fixing HTML Validation Errors


..I did some work on my site: www.irenezart.com with TIDY and then had W3C validator check it with these results:

This page is not Valid HTML 4.01 Transitional!

Below are the results of attempting to parse this document with an SGML parser.

1. Error Line 31 column 0: there is no attribute "BORDERCOLOR".

"#CCFFFF" cellpadding="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.

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.


2. Error Line 82 column 53: there is no attribute "HEIGHT".

<table border="0" cellspacing="0" width="80%" height="290"

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. If you received this error when using the <embed> element to incorporate flash media in a Web page, see the FAQ item on valid flash.

...my HTML is very limited but if someone can show me exactly what to change in my site's code, I'd really appreciate it........
my O.S. is win xp, sp2, home ed. site built with Frontpage. am using firefox
thanks,
jim
Expert
 
Join Date: May 2007
Posts: 213
#6: Jun 29 '07

re: Fixing HTML Validation Errors


You will probably want to use CSS or styles for attributes such as border color and height. If it is a recurring attribute, use CSS. Otherwise, the following will work. Hopefully it points you in the right direction.

Expand|Select|Wrap|Line Numbers
  1. Border:
  2. <table border="0" cellspacing="0" style="border: solid #CCFFFF;">
  3.  
  4. Height:
  5. <table border="0" cellspacing="0" style="width:80%;height:290px;">
Newbie
 
Join Date: Jun 2007
Posts: 3
#7: Jun 29 '07

re: Fixing HTML Validation Errors


Quote:

Originally Posted by improvcornartist

You will probably want to use CSS or styles for attributes such as border color and height. If it is a recurring attribute, use CSS. Otherwise, the following will work. Hopefully it points you in the right direction.

Expand|Select|Wrap|Line Numbers
  1. Border:
  2. <table border="0" cellspacing="0" style="border: solid #CCFFFF;">
  3.  
  4. Height:
  5. <table border="0" cellspacing="0" style="width:80%;height:290px;">


.....thanks for helpful response and could you mention where or how one can learn about CSS?

thanks,
irene
Expert
 
Join Date: May 2007
Posts: 213
#8: Jun 29 '07

re: Fixing HTML Validation Errors


Here is a tutorial that might be helpful.

CSS Intro

If you have more questions, I'll be glad to try to help.
Reply