W3C上的简单修复..验证错误... [英] Simple fix..validation errors at W3C...

查看:53
本文介绍了W3C上的简单修复..验证错误...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一名在第一个网站上工作的业余爱好者,我现在决定使用FP 2002 for

。我当前的页面已启动并且正常运行,但我有两个错误,我似乎无法摆脱...


第29行,第6列:重复的属性规范STYLE

style =" border:1px solid#00F; width:750px;身高:690px;

第154行,第46栏:没有属性BORDERCOLOR

< table border =" 0" CELLSPACING = QUOT; 0" BORDERCOLOR ="#0000FF" width =" 650"


您在文档中使用了上面提到的属性,但您使用的文档

类型不支持该属性这个元素。这个

错误通常是由于错误地使用严格错误引起的。带有

文档的文档类型使用框架(例如,您必须使用Transitional文档

类型来获取target属性),或者使用供应商专有的

扩展名,例如marginheight等。 (通常使用CSS来修复

来实现所需的效果)。


如果元素本身不受支持,也可能导致此错误

您正在使用的文档类型,因为未定义的元素将不支持

属性;在这种情况下,请参阅元素未定义的错误消息

更多信息。


如何修复:检查元素和属性的拼写和大小写,

(记住XHTML都是小写的)和/或检查它们是否都被允许在所选文档类型中使用
,和/或使用CSS而不是此属性。

谁能告诉我如何更正这些错误?

谢谢

布兰登

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

推荐答案

Brandon写道:
Brandon wrote:
我现在已经决定使用FP 2002了。
谁能告诉我如何纠正这些错误?
I have settled on using FP 2002 for now.
Can anyone tell me how to correct these errors?




我认为这就说明了一切。


我们需要一个URL来进一步调查,但你应该真的学会
$ b首先是手动$ b代码,即使你最终转向编码工具

(虽然不是FP)。 FrontPage不是为了生成有效或好的

代码而设计的:它的目的是为了生成在最近的IE版本中查看时设计的代码。


-

马克。
http://tranchant.plus.com/


Brandon写道:
Brandon wrote:
我是一名业余人士现在,我已经决定使用FP 2002了。我当前的页面已经启动了
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




在哪里?我会咨询我的水晶球,但它在商店里!所以请给我们

我们的URL。

Matthias

-
http://blog.ch/



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


2004年11月19日星期五04:14:50 -0700,Brandon< bn **** @ cox.nethefish>写道:
On Fri, 19 Nov 2004 04:14:50 -0700, Brandon <bn****@cox.nethefish> wrote:
我是一个在第一个网站上工作的业余爱好者,我现在已经决定使用FP 2002
了。


我是第一次青少年剃须,我现在已经决定使用

生锈的剪刀了。 br />
我当前页面已启动并且正常运行,但我有两个错误,我似乎无法摆脱......

第29行,第6列:重复属性的规范STYLE
style =" border:1px solid#00F; width:750px;身高:690px;


如前所述,我们需要确定HTML才能确定,但​​是你需要在这个元素中有两个样式属性吗?

第154行,第46栏:没有属性BORDERCOLOR
< table border =" 0" CELLSPACING = QUOT; 0" BORDERCOLOR ="#0000FF" width =" 650"
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"




描述非常明确 - 你在不能使用bordercolor。


让我向您介绍两位新朋友:


[ http://www.w3.org/TR/html401/index/elements.html] - HTML 4.01的列表

元素

[ http:/ /www.w3.org/TR/html401/index/attributes.html] - HTML列表

4.01属性


来自此,我们看到bordercolor不是一个有效的属性。相反,你

可以使用CSS来设置表边框的样式。


我强烈建议使用一个好的HTML和CSS教程,下载一个不错的

文本编辑器(Crimson Editor是一个很好的尝试)并开始学习它

艰难的方式 - 我认为你最终会发现,这真的很容易

方式!使用FP意味着您需要花费尽可能多的时间

使页面纠正其错误。可能需要更长的时间来手动完成它,但是你会更加了解什么有效,以及

什么都没有,以及结果是一个更好的页面。



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.


这篇关于W3C上的简单修复..验证错误...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆