473,657 Members | 2,763 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fixing HTML Validation Errors

3 New Member
Hi,

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

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
Jun 27 '07 #1
7 2388
pbmods
5,821 Recognized Expert Expert
Changed thread title to better describe the problem.

Moving to the HTML forum....
Jun 27 '07 #2
drhowarddrfine
7,435 Recognized Expert Expert
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.
Jun 27 '07 #3
improvcornartist
303 Recognized Expert Contributor
Post some code and the errors you get and I'll try to help out.
Jun 27 '07 #4
jimrich
3 New Member
..I did some work on my site: www.irenezart.c om 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 "BORDERCOLO R".

"#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 "Transition al" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheig ht" (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 "Transition al" document type to get the "target" attribute), or by using vendor proprietary extensions such as "marginheig ht" (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
Jun 29 '07 #5
improvcornartist
303 Recognized Expert Contributor
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;">
Jun 29 '07 #6
jimrich
3 New Member
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
Jun 29 '07 #7
improvcornartist
303 Recognized Expert Contributor
Here is a tutorial that might be helpful.

CSS Intro

If you have more questions, I'll be glad to try to help.
Jun 29 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

12
3291
by: StardogChampion | last post by:
I have wittled down my errors from 12 to 2, but the 2 it shows i can't really do anything about. 1. Line 126, column 48: there is no attribute "COLOR" <td height="1" colspan="5"><hr size="1" color="#CCCCCC"></td> 2. Line 286, column 27: there is no attribute "BACKGROUND"
195
8522
by: Torbjørn Pettersen | last post by:
As you might have noticed I'm trying to clean up my web site's HTML code. The way I do it is simply more or less redoing to complete site, testing it on a web server I have set up on my local network. I have downloaded, and installed CSE HTML Validator Pro, but I don't get the same results with that as I do with the online validator on W3.org. And I can't upload files to W3.org either, due to all the ASP code I use.
12
2251
by: Nalaka | last post by:
Hi, I suddenly started getting a lot of errors from html validation (some CSS) so I followed the following instructions to disable it. If you'd rather not have these types of HTML validation errors show up in your error-list, you can disable this functionality by selecting the Tools->Options menu item in VS or Visual Web Developer. Select the TextEditor->Html->Validation tree option in the left-hand side of the
8
1778
by: goldtech | last post by:
Newbie esp about html validation - seems like something to strive for. Yet many pages even "enterprise" corporate type pages do not validate, yet seem to display well on most browsers. Two questions: 1. What is the reward, the reason to strive for a validating page? 2. Given the code snippet below which does not validate - how can accomplish the same "look" with code that does validate? Please without CSS, just html. Thanks ....
40
5584
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic HTML page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html401/strict.dtd"> <html> <head>
0
7350
pbmods
by: pbmods | last post by:
FIXING NETINFO ERRORS ON THE COMMAND LINE LEVEL: ADVANCED PREREQS: TERMINAL / COMMAND LINE, USERS AND GROUPS Intro Today, while performing routine maintenance, I noticed that I was no longer able to use sudo. And attempting to authenticate wasn't working; my computer kept complaining that I wasn't providing a valid administrator's Username. "That's odd," I thought, since I'd always had an administrator account.
4
1058
by: GaryDean | last post by:
On one of our projects, using vs2005 professional, Visual Studio reformats the html in an aspx page so that it is virtually impossible to work with - although it still executes properly. For instance it takes well formed html that is indented for readability and converts everything to uppercase and removes all carriage returns. it converts this............... <table> <tr> <tdvAlign=top>
2
2100
by: Bruno Schneider | last post by:
I've seen this page, that seems invalid to me. Doctype is incomplete and it does not have a <bodytag. However, W3C validator validates it as HTML 4.01 strict, even when I force the DOCTYPE. I think it should be a bug in the validator, but perhaps, I missed something. What do you think? Page: http://www.bcc.ufla.br/~lpgomes/ Validator:
1
1068
by: =?Utf-8?B?ZGlzY2lwbGluZTRldmVyNjY2?= | last post by:
Hi, the CMS out company wrote a few years ago, uses certain attrbutes not included in any HTML validation known. Is there a way to add these custom attributes to HTML validation within VS2005? I ask this to reduce the number of errors I see without having to disable error trapping completely. I still want to see all error, without the ones from our own CMS. Ill give a little example. On a website we use the attribute pf_string="test" to...
0
8825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8503
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7327
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4304
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.