473,387 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Simple fix..validation errors at W3C...

I am an amateur working on a first site, I have settled on using FP 2002 for
now. My current page is up and live, but I have two errors that I cant seem
to get rid of ...

Line 29, column 6: duplicate specification of attribute "STYLE"
style="border: 1px solid #00F;width: 750px; height: 690px;"
Line 154, column 46: there is no attribute "BORDERCOLOR"
<table border="0" cellspacing="0" bordercolor="#0000FF" width="650"

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.
Can anyone tell me how to correct these errors?
Thanks
Brandon
Jul 23 '05 #1
14 6390
Brandon wrote:
I have settled on using FP 2002 for now.
Can anyone tell me how to correct these errors?


I think that says it all.

We'll need a URL to investigate further, but you should really learn to
code by hand first, even if you eventually move to a coding tool
(although not FP). FrontPage is not designed to produce valid or good
code: it is designed to produce code that will look like what you
designed when viewing in recent IE versions.

--
Mark.
http://tranchant.plus.com/
Jul 23 '05 #2
Brandon wrote:
I am an amateur working on a first site, I have settled on using FP 2002 for
now. My current page is up and live


Where? I'd consult my crystal ball, but it's in the shop! So please give
us the URL.
Matthias
--
http://blog.ch/

Jul 23 '05 #3
On Fri, 19 Nov 2004 04:14:50 -0700, Brandon <bn****@cox.nethefish> wrote:
I am an amateur working on a first site, I have settled on using FP 2002
for
now.
"I'm an adolescent shaving for the first time, I have settled on using a
rusty pair of scissors for now."
My current page is up and live, but I have two errors that I cant seem
to get rid of ...

Line 29, column 6: duplicate specification of attribute "STYLE"
style="border: 1px solid #00F;width: 750px; height: 690px;"
As has been mentioned, we'd need to see the HTML to know for sure, but do
you have two style attributes in this element?
Line 154, column 46: there is no attribute "BORDERCOLOR"
<table border="0" cellspacing="0" bordercolor="#0000FF" width="650"


The description is pretty clear - you're using bordercolor where you can't.

Let me introduce you to two new friends:

[http://www.w3.org/TR/html401/index/elements.html] - the list of HTML 4.01
elements
[http://www.w3.org/TR/html401/index/attributes.html] - the list of HTML
4.01 attributes

From this, we see that bordercolor is not a valid attribute. Instead, you
can use CSS to style the table border.

I highly recommend using a good HTML and CSS tutorial, download a nice
text editor (Crimson Editor is a nice one to try) and start learning it
the hard way - which, I think you'll eventually find, is really the easy
way! Using FP means you need to spend perhaps as much time as you did
making the page to correct its errors. It might take a little longer to do
it by hand, but you're going to get a stronger knowledge of what works and
what doesn't, and a much better page as a result.
Jul 23 '05 #4
On Fri, 19 Nov 2004 04:14:50 -0700, "Brandon" <bn****@cox.nethefish>
wrote:
I have settled on using FP 2002 for now.


You're doomed. FP is incompatible with expecting your code to
validate. Either learn to hand-code (which isn't hard), use an
editor that's not brain-dead, or abandon any idea of writing valid
code.

Bill doesn't like valid code. He doesn't want you to use it.
Jul 23 '05 #5
Brandon wrote:
I am an amateur working on a first site
Yes, obviously.
I have settled on using FP 2002 for now.
FrontPage Horrors!
http://webstandards.org/buzz/archive...8.html#a000408

It is extremely difficult to produce well structured and valid markup
using FrontPage. I'd recommend firing up Notepad or, if you like, a
descent text editor that provides syntax highlighting. Dreamweaver is
quite good, it comes very close to producing well structured and valid
markup by default, though it does have it's problems. However, if your
hand coding, like all professionals do, then the code is always as valid
as you write it.

If you just want a free editor, I like SuperEdi [1], which has very good
syntax highlighting and excellent unicode support, it's one of the best
free editor I've used.

There are many other good editors out there, and I've heard many good
reviews about the dirt and pointy stick editor [2]. Despite it being
written on dirt, the code is actually much cleaner than that produced by
FrontPage.
My current page is up and live
Really? I tried searching for it, but couldn't figure out which site it
was out of about 8,058,044,651 results.
Line 29, column 6: duplicate specification of attribute "STYLE"
style="border: 1px solid #00F;width: 750px; height: 690px;"
Seems quite self explanitory to me. Obviously, you have two style
attributes. Remove one, and it should validate. Remove them both, and
put the style in an external stylesheet for best results.
Line 154, column 46: there is no attribute "BORDERCOLOR"
<table border="0" cellspacing="0" bordercolor="#0000FF" width="650"

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.


Again, that makes perfect sense! The way to fix it is to remove the
attribute. As the error message states, it is not allowed the element,
so removing it will fix the problem. It's also presentational, just
like the rest of those attributes in there. All presentation should be
specifed with a stylesheet, not presentational elements and attributes.

I'm assuming you actually read the error messages, but I don't get why
you couldn't understand them. However, many people have difficulty
understanding them, so what kind of information do you think would make
them clearer for you?

[1] http://www.wolosoft.com/en/superedi/
[2] http://editor.usenetshit.info/

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://SpreadFirefox.com/ Igniting the Web
Jul 23 '05 #6

"Brandon" <bn****@cox.nethefish> wrote in message
news:BBknd.104594$kz3.84530@fed1read02...
I am an amateur working on a first site, I have settled on using FP 2002 for now. My current page is up and live, but I have two errors that I cant seem to get rid of ...

Line 29, column 6: duplicate specification of attribute "STYLE"
style="border: 1px solid #00F;width: 750px; height: 690px;"
Line 154, column 46: there is no attribute "BORDERCOLOR"
<table border="0" cellspacing="0" bordercolor="#0000FF" width="650"

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 an error message says that you have duplicate specifications of the STYLE
attribute, then stop having duplicate specifications of the STYLE attribute.
Remove one.

The W3C should come up with a different way of reporting uses of tags or
attributes that are undefined in HTML. Saying "There is no ..." gives the
impression that there isn't one in your code and that there *should* be.
What it actually means is the opposite: there is no [whatever] in HTML, so
its presence in your code renders it invalid. In your case, the BORDERCOLOR
message is telling you that HTML has no BORDERCOLOR attribute. So stop using
it. Use CSS instead.

Jul 23 '05 #7

"Harlan Messinger" <h.*********@comcast.net> wrote in message
news:30*************@uni-berlin.de...

"Brandon" <bn****@cox.nethefish> wrote in message
news:BBknd.104594$kz3.84530@fed1read02... If an error message says that you have duplicate specifications of the STYLE attribute, then stop having duplicate specifications of the STYLE attribute. Remove one.

I get that, the point here is that i have desgined this with FP , i dont
know what the definition of a style atrribute IS let alone how remove a
duplicate one.
Line 29, column 6: duplicate specification of attribute "STYLE"
style="border: 1px solid #00F;width: 750px; height: 690px;"
Same here, basically i dont understand what it is telling me, because i dont
know how to define what part of the code is the failing. Line 154, column 46: there is no attribute "BORDERCOLOR"
<table border="0" cellspacing="0" bordercolor="#0000FF" width="650"


Thanks for the input

To all: i appreciate the input regarding FP...i shall look for an
alternative, any additional siggestions for a WYSIWYG editor appreciate,.

The W3C should come up with a different way of reporting uses of tags or
attributes that are undefined in HTML. Saying "There is no ..." gives the
impression that there isn't one in your code and that there *should* be.
What it actually means is the opposite: there is no [whatever] in HTML, so
its presence in your code renders it invalid. In your case, the BORDERCOLOR message is telling you that HTML has no BORDERCOLOR attribute. So stop using it. Use CSS instead.




Jul 23 '05 #8
Brandon wrote:
i shall look for an alternative, any additional siggestions for a
WYSIWYG editor appreciate,.


WYSIWYG is not really applicable on the web, so any any HTML editor
which claims to be WYSIWYG is suspect. What you should use is an editor
that helps create html markup with visuals as an afterthought. Ideally,
it should have some way of managing common parts of a site (including a
menu on all pages, taking into account site structure, avoiding links
that point to the same page, ...). In other words, a combined
pre-processor and html editor that assists in creating tags and
attributes. So far, I've not seen such a thing. In fact, I've tried a
couple of pre-processors and found them woefully lacking.

My only advice: learn HTML and code with a text editor that has
search-and-replace across files, has templates, macros, etc. And do the
preprocessing yourself. I like Notetab.

--
Brian (remove "invalid" to email me)
Jul 23 '05 #9
On Fri, 19 Nov 2004 13:21:16 -0700, Brandon <bn****@cox.nethefish> wrote:
To all: i appreciate the input regarding FP...i shall look for an
alternative, any additional siggestions for a WYSIWYG editor appreciate,.


What You See Is _*NOT*_ What You Get.[1] I recommand that you get a firm knowledge of markup and then styles, how to keep them separated and let content dictate the markup and the style at the same time.
There is not much wrong with these so_called WYSI(n)WYG editors. Most of the times it is the user. Come to think of it, all of the times it is the user ;-) Use FP, but use with care.

[1]Think of all the GUI out there (names, engines, versions) and all the platforms and all the _not_GUI out there too (plain text, braille, aural). You will never ever get what you see in a WYSI(n)WYG editor.

--
Weblog | <http://home.wanadoo.nl/b.de.zoete/_private/weblog.html>
Webontwerp | <http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html>
Zweefvliegen | <http://home.wanadoo.nl/b.de.zoete/html/vliegen.html>
Jul 23 '05 #10
Input duly noted, in the mean time, can anyone tell me how to correct these
two errors in the current code??

The point here is that I have designed this with FP I don't
know what the definition of a style attribute IS let alone how remove a
duplicate one.
Line 29, column 6: duplicate specification of attribute "STYLE"
style="border: 1px solid #00F;width: 750px; height: 690px;"
Same here, basically i dont understand what it is telling me, because i dont
know how to define what part of the code is the failing.
Line 154, column 46: there is no attribute "BORDERCOLOR"
<table border="0" cellspacing="0" bordercolor="#0000FF" width="650"


Folks, I do appreciate the fact that I need to move away from FP, but I
don't have the time or the need to become THAT proficient in coding? I
analogize it with becoming a mechanical engineer so that I can change a tire
on my car...
Thanks for the input.
Brandon

"Barbara de Zoete" <b_********@hotmail.com> wrote in message
news:opshqbievmx5vgts@zoete_b... On Fri, 19 Nov 2004 13:21:16 -0700, Brandon <bn****@cox.nethefish> wrote:
To all: i appreciate the input regarding FP...i shall look for an
alternative, any additional siggestions for a WYSIWYG editor
appreciate,.
What You See Is _*NOT*_ What You Get.[1] I recommand that you get a firm knowledge of markup and then styles, how to keep them separated and let
content dictate the markup and the style at the same time. There is not much wrong with these so_called WYSI(n)WYG editors. Most of the times it is the user. Come to think of it, all of the times it is the
user ;-) Use FP, but use with care.
[1]Think of all the GUI out there (names, engines, versions) and all the platforms and all the _not_GUI out there too (plain text, braille, aural).
You will never ever get what you see in a WYSI(n)WYG editor.
--
Weblog | <http://home.wanadoo.nl/b.de.zoete/_private/weblog.html>
Webontwerp | <http://home.wanadoo.nl/b.de.zoete/html/webontwerp.html>
Zweefvliegen | <http://home.wanadoo.nl/b.de.zoete/html/vliegen.html>

Jul 23 '05 #11
Brandon wrote:
Input duly noted, in the mean time, can anyone tell me how to correct these
two errors in the current code??
We already told you how to fix these errors.
Line 29, column 6: duplicate specification of attribute "STYLE"
style="border: 1px solid #00F;width: 750px; height: 690px;"

Open up the file in Notepad, not FrontPage. Press Ctrl+G and enter line
29. You will see an element that contains the above style attribute,
and there will be two of them. Remove one to fix the problem.

eg.
<td style="border: 1px solid #00F;width: 750px; height: 690px;"
style="border: 1px solid #00F;width: 750px; height: 690px;">

(where td could be any element, I just took a guess at the most likely
suspect, considering your using FP, and undoubtedly using tables for
layout, which should not be done.)
Same here, basically i dont understand what it is telling me, because i dont
know how to define what part of the code is the failing.

Line 154, column 46: there is no attribute "BORDERCOLOR"
<table border="0" cellspacing="0" bordercolor="#0000FF" width="650"

Go to line 154. Notice the bordercolor="#0000FF" attribute. Remove it.
Folks, I do appreciate the fact that I need to move away from FP, but I
don't have the time or the need to become THAT proficient in coding?


You don't need to become really efficient, but if you're going to make a
website, you need to at least understand the basics of reading and
editing source code. The fact that you're learning, and have no clue
about reading source code, based on your questions, is enough reason for
you to avoid WYSI(n)WIG editors all together, since you are unable to
clean up the mess.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://SpreadFirefox.com/ Igniting the Web
Jul 23 '05 #12
On Fri, 19 Nov 2004 13:21:16 -0700, "Brandon" <bn****@cox.nethefish>
wrote:
any additional siggestions for a WYSIWYG editor appreciate,.


There are none.

We know what a lousy (or borderline OK) WYSIWYG editor should do.
There are editors that do this. FP is a bad example of the genre.

We know what a really good WYSIWYG editor should do. None of them
currently do this. (there's a good thread in talking in detail about
this, if anyone cares)
If you really just want to go for it, hack up your code with FP and
stop worrying. It'll work, for small values of "work". Forget trying
to validate it though.

--
Smert' spamionam
Jul 23 '05 #13
Brandon wrote:
Folks, I do appreciate the fact that I need to move away from FP, but
I don't have the time or the need to become THAT proficient in
coding?
Is that a question that we're meant to answer? It looks like you're
telling us that you don't have the time or need.
I analogize it with becoming a mechanical engineer so that I can
change a tire on my car...


HTML was supposed to be a simple markup language, within reach of
amateurs. And indeed it is, if you decide to use it as it was intended,
as a semantic markup language. It is easy to learn <h1>, <p>, and <ul>.
But there was a rather substantial detour when folks tried to shoehorn
it into a dtp language. Whence came the wysiwyg idea.

You said you wanted a wysiwyg editor, and that you've settled on FP. But
you don't like the markup errors it produces. Don't use the tool if you
don't like the results. Or keep the tool, and accept the results. Your
choice.

--
Brian (remove "invalid" to email me)
Jul 23 '05 #14
On Fri, 19 Nov 2004 16:48:11 -0700, Brandon <bn****@cox.nethefish> wrote:
I
analogize it with becoming a mechanical engineer so that I can change a
tire
on my car...


Replace "change a tire" to "replacing the transmission" or "doing an
alignment" and I'll agree. But it changes it entirely.

I analogize using FP to make a website with buying a few thousand dollars
of repair and diagnostic equipment without gaining the requisite knowledge
to use it.

FP has as its basic flaw, one that many other so-called WYSIWYG editors
share, that it purports to make the web page for you without your having
to know what to do.

Changing a tire, that's routine and every driver should know how to do
that, along with refueling, checking the oil and coolant and adding fluid
as needed, and changing a headlight. What FP claims to do is far more
complex than that - it's something that I would never trust a computer
program to accomplish all on its own.

You're attempting to equate designing a web page with "changing a tire"
when in essence you're building a whole new car. Don't trivialize web
authoring even though FP suggests you should.
Jul 23 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: MJ | last post by:
I am attempting to write a ServletFilter in Java/J2EE that checks if the incoming data is valid according to a schema. If errors occur, I want to return the error list and not proceed down the...
2
by: Sudip Chakraborty | last post by:
Is there a way to see constraint validation errors while loading xml into a DataSet ? I'm interested in the line number in the xml file which is causing the error. I've enclosed the relevant stack...
51
by: Alan | last post by:
hi all, I want to define a constant length string, say 4 then in a function at some time, I want to set the string to a constant value, say a below is my code but it fails what is the correct...
18
by: Q. John Chen | last post by:
I have Vidation Controls First One: Simple exluce certain special characters: say no a or b or c in the string: * Second One: I required date be entered in "MM/DD/YYYY" format: //+4 How...
2
by: TCORDON | last post by:
Is there a way to make the form validation highlight the fields where the errors occur? (change the backcolor of the textboxes)? And second, perform validation without postback and run some...
12
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...
9
by: julie.siebel | last post by:
Hello all! As embarrassing as it is to admit this, I've been designing db driven websites using javascript and vbscript for about 6-7 years now, and I am *horrible* at form validation. To be...
7
ak1dnar
by: ak1dnar | last post by:
Hi, I got this scripts from this URL There is Error when i submit the form. Line: 54 Error: 'document.getElementbyID(....)' is null or not an object What is this error. Complete Files
5
by: wwolfson | last post by:
This is my code: <?php //start a session session_start(); $errors = NULL; $firstname = $_POST;
8
by: Bryan | last post by:
I want my business objects to be able to do this: class Person(base): def __init__(self): self.name = None @base.validator def validate_name(self): if not self.name: return
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.