为什么您需要“有效的 XHTML 和” CSS” 页面末尾的通知

发布于 2024-07-26 10:16:42 字数 86 浏览 7 评论 0原文

我在各种网站的页脚中看到过这一点,其中大多数是非技术网站。 有些网站甚至更进一步,包括一个 W3C 徽章来说明这一事实。 我不明白这对目标受众有什么帮助。

I've seen this in the footer of various websites, most of them non-technical websites. Some websites go even further and include a W3C badge stating the fact. I don't see how this can be of any help to the targeted audience.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(13

我要还你自由 2024-08-02 10:16:43

在我看来,许多网页设计机构并没有将其视为网站质量的标志。 有时,让一个好的网站兼容 XHTML 并不是一件容易的事。

It doesn't, in my opinion many webdesign agencies put it as a sign of quality in the site. Sometimes make a good site XHTML compliant is not an easy task.

杯别 2024-08-02 10:16:43

人们通常会在底部添加一个“有效”,以表明他们的网站符合 W3C 网站建设标准。 如果一个网站无法正常工作并且底部没有有效的链接或图像,那么它可能写得不好。 通过 W3C 验证您的网站表明您已正确编码页面。

People generally put a valid at the bottom to display that their website is complaint with the W3C standards for building websites. If a website isn't working correctly and hasn't got a valid link or image at the bottom then its probably been poorly written. By validating your website through the W3C shows that you have correctly coded your pages.

别念他 2024-08-02 10:16:43

W3C HTML 验证器CSS 验证器 包含链接代码,用于显示标记和 CSS 有效的横幅。

主要是想告诉您,作者实际上已经费尽心思确保 XHTML 和 CSS 是有效的。

不幸的是,没有语法错误并不意味着没有逻辑错误。

The W3C HTML validator and CSS validator contain linking code to display banners that markup and CSS are valid.

It's mainly to tell you that the authors have actually bothered to make sure that the XHTML and CSS are valid.

Unfortunately, being syntax error-free doesn't make it logic-error free.

家住魔仙堡 2024-08-02 10:16:43

简短回答:您不需要在网页上使用它。

将其放置在那里的任何原因对于页面作者来说都是主观的,与您无关。

Short answer: You do not NEED it on a web page.

Any reason that it was put there is subjective to the author of the page and does not really concern you.

时间海 2024-08-02 10:16:42

我能想到几个可能的原因:

  1. 它可能是一种营销工具。 “看,我们按照适当的标准进行编码!” 这可能适用于设计该网站的个人(并可能将其包含在他们的投资组合中),即使该公司作为一个整体是非技术性的。

  2. 这可能是传播 XHTML 等意识的一种方式。 “也应该按照适当的标准进行编码!”

  3. 它可能会提高整个网站(也可能是公司产品)的质量认知。 我真的认为这不太可能,但一些营销部门可能会。

  4. 正如其他人指出的那样,这可能只是网页设计师的一个自豪点。

    正如

I can think of a few possible reasons:

  1. It may be a marketing tool. "Look, we code to appropriate standards!" This could apply to the individual who designed the site (and might include it in their portfolio), even if the company as a whole is non-technical.

  2. It could be a means of spreading awareness about XHTML, et al. "You should code to appropriate standards, too!"

  3. It might improve the perception of quality for the site as a whole (and maybe the company's products, by association). I don't really think this is particularly likely, but some marketing departments might.

  4. As others have noted, it could just be a point of pride for the web designer.

雾里花 2024-08-02 10:16:42

说实话,我觉得这只是为了炫耀。 “嘿,看,我的网站使用有效的 XHTML!” 除了显示它的编码良好之外,它实际上没有任何目的。

Honestly, I think it's just done to brag. "Hey, look, my website uses valid XHTML!" It doesn't really serve any purpose other than to show that it was well coded.

等你爱我 2024-08-02 10:16:42

这是一个骄傲的徽章。 我不一定同意在网站上涂上验证图标,但我确实坚信按照标准进行编码。 由于 W3C 等人的辛勤工作,网络的工作难度比以前要低得多。

It's a badge of pride. I don't necessarily think I agree with plastering sites with validation iconography, but I do firmly believe in coding to standards. The web is a much less difficult place to work than it used to be because of the hard work of the W3C et al.

情归归情 2024-08-02 10:16:42

在大多数情况下,此徽章是针对引用站点运行的自动验证任务的链接。 这是邀请观众仔细检查您的作品质量。

In most cases, this badge is a link to an auto-validation task ran against the referring site. This is an invitation for the audience to scrutinize the quality of your work.

腹黑女流氓 2024-08-02 10:16:42

它没有任何有用的目的。 仅仅因为站点符合 xhtml 并不意味着它的编码良好。 这只是意味着开发人员关心网站是否符合 xhtml。

It doesn't serve any useful purpose. Just because a site is xhtml compliant doesn't mean it is well coded. It just means the developer cares whether or not the site is xhtml compliant or not.

北风几吹夏 2024-08-02 10:16:42

这通常意味着后面有一些 JavaScript 在页面加载后在链接上添加 target 属性。

It usually means there's some JavaScript behind that adds target attributes on links after the page has loaded.

℡寂寞咖啡 2024-08-02 10:16:42

我会再添加两个 John Hyland 的回答

  1. 通过声明页面/网站格式良好,可能表明它可以更容易地被第三方解析。
  2. 对于可重复使用的内容(例如知识共享许可),它告知可以在不违反 W3C 合规性的情况下复制/粘贴或包含代码。

I'd add two more to John Hyland's answer:

  1. By stating that the page/site is well-formed, it may state that it can be more easily parsed by third-parties.
  2. For re-usable content (e.g. Creative Commons licensing), it informs that the code may be copy/pasted or included without breaking W3C compliance.
漆黑的白昼 2024-08-02 10:16:42

我对人们在页脚中放置的内容很着迷。 下面全是各种垃圾。 有时我什至希望导航位于页面顶部。 示例:

stackoverflow.com | serverfault.com

I'm fascinated by what people put in the footer. All kinds of junk down there. Sometimes there is even navigation that I wish were at the top of the page. Example:

stackoverflow.com | serverfault.com

滥情空心 2024-08-02 10:16:42

我还看到带有 W3C 徽章的网站实际上没有通过验证。

I've also seen sites with W3C badge who actually do not pass validation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文