验证网站的问题 [英] problem with validated site

查看:51
本文介绍了验证网站的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好:


我开发了一个漂亮的网页,为人们提供了我们社会出版物的简要概述(我们不同的新闻简报) )。

但是,虽然我绝不是专家或专业网站

设计师,但我对XHTML 1.0了解得足够多了解

保证所有或至少大多数浏览器的互操作性,包括

lynx是为了确保我的网站符合w3标准。所以,我通过XHTML 1.0 Transitional验证器运行了我的网站

,并且它没有通过
,所以我用Tidy清理了我的标记。然后我将

标记复制并粘贴到验证器中,并进行验证。但是,当我在网上查看

有效页面时,看起来很有趣。


这是页面: http://www.reaps.org/walker_html/publications.html

I ''我不知道为什么不同的段落都有不同的字体,当

我甚至看不到< fonttag。我的挑战是我们网站上的一堆页面最近由专业网站设计师重新设计,

现在每次创建新页面时,我都会尝试使用其他页面他是

作为模板完成的。但是我不熟悉他的所有代码(例如,

我不知道< spantag是做什么的)。由于我无法在这里找到我们的O'B $ b O''Reilly HTML书籍,我希望有人可以看一下

源代码,以及让我知道我做错了什么,以及如何解决它。


另外,如果我想让每个段落变成不同的颜色,那么
是什么
在XHTML 1.0 Transitional中执行此操作的有效方式。我最终会使用

CSS作为我的格式,但我想等到我的付费时间确实如此,

并且我再次做志愿者。然后,我可以花费尽可能多的时间来获取CSS代码,而不用担心我的时间有多好。


谢谢你的帮助;我期待着从您的反馈中学习。


Corey Walker

网站管理员,回收和环境行动计划协会

Hello:

I developed a nice looking web page which provided people with a brief
overview of our society''s publications (our different newsletters).
However, while I''m by no means an expert or professional website
designer, I know enough about XHTML 1.0 to know that the best way to
guarantee interoperability on all, or at least most browsers, including
lynx is to make sure my site complies with the w3 standards. So, I ran
my site through the XHTML 1.0 Transitional validator, and it didn''t
pass, so I had it clean up my markup using Tidy. I then copy and pasted
that markup into the validator, and it validated. However, when I viewed
the valid page online, it looked funny.

This is the page: http://www.reaps.org/walker_html/publications.html .
I''m not sure why the different paragraphs all have different fonts, when
I can''t even see a <fonttag. My challenge is that a bunch of pages
on our site were recently redesigned by a professional website designer,
and now every time I create a new page, I try to use other pages he''s
done as a template. But I''m not familiar with all his code (for example,
I have no idea what the <spantag does). And since I can''t find our
O''Reilly HTML book around here, I''m hoping somebody can take a look at
the source code, and let me know what I''ve done wrong, and how I can fix it.

Also, if I want to make each paragraph a different colour, what is the
valid way of doing that in XHTML 1.0 Transitional. I will eventually use
CSS for my formatting, but I want to wait until my paid time is does,
and I''m volunteering again. Then, I can take as much time as I need to
figure out the CSS code, without worrying about how well I''m using my time.

Thanks for your help; I look forward to learning from your feedback.

Corey Walker
Webmaster, Recycling and Environmental Action Planning Society

推荐答案

Corey Walker写道:
Corey Walker wrote:

你好:


我开发了一个漂亮的网页这个页面为人们提供了一个简短的

概述我们社会的出版物(我们的不同新闻简报)。

但是,虽然我绝不是专家或专业网站

设计师,我对XHTML 1.0了解得足够多,知道

的最佳方式可以保证所有或至少大多数浏览器的互操作性,包括

lynx是为了确保我的网站符合w3标准。
Hello:

I developed a nice looking web page which provided people with a brief
overview of our society''s publications (our different newsletters).
However, while I''m by no means an expert or professional website
designer, I know enough about XHTML 1.0 to know that the best way to
guarantee interoperability on all, or at least most browsers, including
lynx is to make sure my site complies with the w3 standards.



不够,你知道错了。在这里讨论了很长的和alt.html


请参阅:

http://www.google.com/search?hl=en&q...rt&btnG=搜索

xhtml浏览器支持 - Google搜索


HTML 4.01严格是你想要的

Not enough, you know wrong. Been discussed at great length here and alt.html

See:

http://www.google.com/search?hl=en&q...rt&btnG=Search
xhtml browser support - Google Search

HTML 4.01 Strict is what you want


所以,我通过XHTML 1.0 Transitional验证器运行了我的网站

,并且它没有通过
,所以我把它清理干净了使用Tidy提升我的标记。然后我将

标记复制并粘贴到验证器中,并进行验证。但是,当我在网上查看

有效页面时,看起来很有趣。


这是页面: http://www.reaps.org/walker_html/publications.html

I ''我不知道为什么不同的段落都有不同的字体,当

我甚至看不到< fonttag。
So, I ran
my site through the XHTML 1.0 Transitional validator, and it didn''t
pass, so I had it clean up my markup using Tidy. I then copy and pasted
that markup into the validator, and it validated. However, when I viewed
the valid page online, it looked funny.

This is the page: http://www.reaps.org/walker_html/publications.html .
I''m not sure why the different paragraphs all have different fonts, when
I can''t even see a <fonttag.



Oi vai!因为不同类别的风格不同。你

有段落吗?有趣的是你并没有这样加价!使用< p>< / pnot使用多个换行符< br>定义段落


Oi vai! Because they are styled differently with different classes. You
have paragraphs? Funny you didn''t markup up that way! Paragraphs are
defined with <p></pnot using multiple line breaks <br>.


我的挑战是

我们的网站最近由专业网站设计师重新设计,

现在,每当我创建新页面时,我都尝试使用其他页面。 s

作为模板完成。但是我不熟悉他的所有代码(例如,

我不知道< spantag是做什么的)。由于我无法在这里找到我们的O'B $ b O''Reilly HTML书籍,我希望有人可以看一下

源代码,以及让我知道我做错了什么,以及如何解决它的问题。
My challenge is that a bunch of pages on
our site were recently redesigned by a professional website designer,
and now every time I create a new page, I try to use other pages he''s
done as a template. But I''m not familiar with all his code (for example,
I have no idea what the <spantag does). And since I can''t find our
O''Reilly HTML book around here, I''m hoping somebody can take a look at
the source code, and let me know what I''ve done wrong, and how I can fix
it.



最好的建议是停止。了解一下正确的标记。使用HTML 4.01

strict并丢失XHTML

尝试 www.htmldog.com


>

此外,如果我想制作每个段落都有不同的颜色,在XHTML 1.0 Transitional中这样做的有效方式是什么?我最终会使用

CSS作为我的格式,但我想等到我的付费时间确实如此,

并且我再次做志愿者。然后,我可以花费尽可能多的时间来获取CSS代码,而不用担心我的时间有多好。


谢谢你的帮助;我期待着从您的反馈中学习。


Corey Walker

网站管理员,回收和环境行动计划协会
>
Also, if I want to make each paragraph a different colour, what is the
valid way of doing that in XHTML 1.0 Transitional. I will eventually use
CSS for my formatting, but I want to wait until my paid time is does,
and I''m volunteering again. Then, I can take as much time as I need to
figure out the CSS code, without worrying about how well I''m using my time.

Thanks for your help; I look forward to learning from your feedback.

Corey Walker
Webmaster, Recycling and Environmental Action Planning Society


-

保重,


Jonathan

----------- --------

LITTLE WORKS STUDIO
http ://www.LittleWorksStudio.com


Sun,2007年10月21日20:26:01 GMT来自Corey Walker

< ;我们******* @ reaps.org>:
Sun, 21 Oct 2007 20:26:01 GMT from Corey Walker
<we*******@reaps.org>:

这是页面: http://www.reaps.org/walker_html/publications.html

我是不知道为什么不同的段落都有不同的字体,当

我甚至看不到< fonttag。
This is the page: http://www.reaps.org/walker_html/publications.html .
I''m not sure why the different paragraphs all have different fonts, when
I can''t even see a <fonttag.



感谢您提供网址而不是粘贴代码。


实际上,您*没有*段落。使用< br>< br>来获得大量的

文本,并使用< span>来设置句子组。

这使得它不必要地变硬弄清楚发生了什么。


你有嵌套< span> s。一切达到蠕虫类型的一切在c1中是c2

,接下来是c1中的c2 *而不是*。这就是为什么

存在差异。


< br><在某些浏览器中显示空白行,而不是全部。如果您有< p>

,您可以使用上边距设置它;你不能用< span>来做到这一点。


为什么不用诚实到gosh的段落替换所有垃圾?


-

Stan Brown,Oak Road Systems,美国纽约汤普金斯县
http://OakRoadSystems.com/

HTML 4.01规范: http://www.w3.org/TR/html401/

验证器: http://validator.w3.org/

CSS 2.1规范: http://www.w3.org/TR/CSS21/

验证人:< a rel =nofollowhref =http://jigsaw.w3.org/css-validator/\"target =_ blank> http://jigsaw.w3.org/css-validator/

为什么我们不能帮助你:
http://diveintomark.org/archives/200..._wont_help_you

Thanks for giving a URL instead of just pasting code.

Actually, you *don''t* have any paragraphs. You have a big mass of
text with <br><br>, and groups of sentences are styled with <span>.
This makes it unnecessarily hard to figure out what''s going on.

You have nested <span>s. Everything up to "types of worms" is in c2
within c1, and what comes after is in c2 *not* within c1. That''s why
there''s a difference.

<br><brgives a blank line in some browsers, not all. If you had <p>
you could style it with a top margin; you can''t do that with <span>.

Why not replace all that garbage with honest-to-gosh paragraphs?

--
Stan Brown, Oak Road Systems, Tompkins County, New York, USA
http://OakRoadSystems.com/
HTML 4.01 spec: http://www.w3.org/TR/html401/
validator: http://validator.w3.org/
CSS 2.1 spec: http://www.w3.org/TR/CSS21/
validator: http://jigsaw.w3.org/css-validator/
Why We Won''t Help You:
http://diveintomark.org/archives/200..._wont_help_you


Corey Walker写道:
Corey Walker wrote:

>

这是页面: http://www.reaps.org/walker_html/publications.html

我不知道为什么不同的段落都有不同的字体,当

我甚至看不到< fonttag。
>
This is the page: http://www.reaps.org/walker_html/publications.html .
I''m not sure why the different paragraphs all have different fonts, when
I can''t even see a <fonttag.



简短的答案是带有类c1的范围。涵盖

前三个paragrpahs(即使它们没有标记为段落)

并在第四段之前结束。 Span.c1请求font-family:

Arial,Helvetica,sans-serif,这显然不同于浏览器设置使用的

默认字体(我'我打赌你看到Times New

罗马在最后一张图上。这只是短暂而直接的答案,但是

它不会显着改善你的生活。


阅读André和Jonathan的帖子,并注意他们所说的话(尽管

Jonathan为了标记而谴责你,你显然只是继承了b $ b)。事实上,他们的帖子长期指向您网站的悲惨状况。潜入学习HTML和CSS将是你能做的最好的事情,而第二选择可能是找到

*另一个*专业网站设计师 (这次很好),谁b / b $ b $将免费重做网站。祝你好运。 ;-)


BTW,两周前我建议定义一个背景颜色,但你的

网站仍然没有这样的定义。 CSS中有这样的东西:


body {color:black;背景颜色:白色; }

The short, simple answer is that the span with class "c1" covers the
first three paragrpahs (even though they''re not marked up as paragraphs)
and ends before the fourth paragraph. Span.c1 asks for font-family:
Arial, Helvetica, sans-serif, which is apparently different from the
default font your browser is set to use (I''m betting you see Times New
Roman on that last graph). That''s just the short, immediate answer, but
it won''t improve your life significantly.

Read the posts by André and Jonathan, and heed what they say (although
Jonathan berates you a little much for markup you''ve apparently only
inherited). The fact that their posts are long point to the tragic
condition of your site. Diving in to learn HTML and CSS would be the
best thing you could do, while second choice is probably finding
*another* "professional website designer" (a good one this time), who
will redo the site for free. Good luck with that. ;-)

BTW, two weeks ago I suggested defining a background color, but your
site still lacks such a definition. Something like this in the CSS:

body { color:black; background-color:white; }


我不知道< spantag是做什么的。由于我无法在这里找到我们的O'B $ b O''Reilly HTML书籍,我希望有人可以看一下

源代码,以及让我知道我做错了什么,以及如何解决它的问题。
I have no idea what the <spantag does). And since I can''t find our
O''Reilly HTML book around here, I''m hoping somebody can take a look at
the source code, and let me know what I''ve done wrong, and how I can fix
it.



W3C在线有资源,HTML和CSS的参考资料比比皆是。
http://www.w3.org/TR/html401/struct/global.html#h-7.5。 4 是关于< span>的HTML 4.01

版本,但我相信XHTML'没有什么不同,

无论如何,你现在不应该尝试使用XHTML。

HTML 4.01: http://www.w3.org/TR/html401/

CSS 2.1: http://www.w3.org/TR/CSS21/

其他人提到的教程或通过一个搜索引擎。


-

John

思考UIP的价值: http://improve-usenet.org/

The W3C has resources online, and references for HTML and CSS abound.
http://www.w3.org/TR/html401/struct/global.html#h-7.5.4 is the HTML 4.01
version of the text about <span>, but I believe XHTML''s is no different,
and anyway, you shouldn''t be attempting to use XHTML right now.
HTML 4.01: http://www.w3.org/TR/html401/
CSS 2.1: http://www.w3.org/TR/CSS21/
Tutorials as mentioned by the others or as found via a search engine.

--
John
Pondering the value of the UIP: http://improve-usenet.org/


这篇关于验证网站的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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