WordPress:Validating a Website

来自站长百科
Fludlen讨论 | 贡献2008年4月21日 (一) 11:11的版本
跳转至: 导航、​ 搜索

Validating a website is the process of ensuring that the pages on the website conform to the norms or standards defined by various organizations. Validation is important, and will ensure that your web pages are interpreted in the same way (the way you want it) by various machines, such as search engines, as well as users and visitors to your webpage.

确认一个网站是一个过程,就是确保站点上的网页符合不同的组织所规定的标准。确认非常的重要,能够确保你的网页被不同机器翻译的方式是相同的(你想要它被翻译的方式),例如搜索引擎,以及你的网页上的用户和访客。

Conforming to standards and regulations is one of the many ways you can make your website universally understood. Make sure your codes and styles validate across the board. That means they have to meet the "strict" standards set by the W3C Organization and pass a variety of validations for CSS and XHTML.

符合标准和规则是使广泛的人群了解你的站点的方法之一。确保你的代码和形式在面板上是有效的。这意味着它们要符合W3C 阻止所规定的"严格的"标准,并且为CSSXHTML通过许多的确认过程。

Not all validators check for the same things. Some only check CSS, others XHTML, and others for accessibility. If you are sincere in presenting standardized pages to the public, test them with several validators. The World Wide Web Consortium sets the standards and also hosts a variety of web page validators.

并不是所有的validators都核对同样的内容。有的只核对CSS,有的核对XHML,还有其它的核对可访问性。如果你非常真诚地想要向公众显示标准的网页,用几个validators将这些网页测试一下。环球网团体设置了标准,同时也托管了许多的网页 validators

In simple terms, validation ensures that your website complies with the standards accepted by most web designers. That also means that it will be accessible to more people, across more web browsers and operation systems. Having an accessible website is also regarded as good web design practice. As you can see, having a validated website has its definite plus points.

简单地来说,确认过程确保了你的网站符合了大多数网站设计者的接受的标准。这也意味着,更多的人可以通过更多的网络浏览器和操作系统访问你的网站。拥有一个可访问的网站也被认为是一个好的网络设计原则。如你所看到的那样,有一个确认过的网站,有一定的加分。

Validation Techniques

确认技术

Validators detect problems in your web page and style sheet. It could be a tag that was opened and never closed. It could be a misspelled piece of code or forgotten element the tag or style requires to work properly. You become a detective, hunting and solving the little problems occurring in your web page. The [[WordPress:#Validation Resources and Articles|resources and articles on validation]] below will help you learn more about validating your web page.

Validators在你的网页和样式上发现问题。问题可能在于一个打开的,而且永远不能关闭的标签。问题也可能在与一个拼写错了的代码,或者一个遗忘的元素,但是只有这个样式存在,标签或者样式才能够合理地运行。你变成了一个侦探,搜索和解决你的网页上出现的一些小问题。以下的[[WordPress:#Validation Resources and Articles|关于确认的资源和文章]]会帮助你学习更多的关于确认你的网页知识。

Validating your WordPress site means more than just checking the front page for errors. With the modular Themes and template files in WordPress, while you may fix all the errors associated with the index.php and sidebar.php when viewing your front page, errors may still lie within any other template files such as single.php, page.php, archives.php, or category.php. Validate these page views as well to make sure you cover all the template files.

确认你的WordPress站点意味着不仅仅检查首页上的错误。根据WordPress中的模的标题标题文件,当你访问你的首页的时候,你可能解决了所有的与index.phpsidebar.php相关的问题,但是问题可能仍然存在任何其它的模板文件中,例如single.php, page.php, archives.php, 或者category.php。确认这些网页浏览,同时确保你检查了所有的模板文件。

Validation errors aren't limited to your template files. They can also happen inside of a post. When you are writing a post and using HTML, WordPress might not recognize the HTML and convert it to a character entity, or you may have entered it wrong. If you have a page with a lot of HTML coding, validate it to make sure you have it all correct. And occasionally check random posts to make sure everything is still okay from time to time as part of your general housekeeping.

确认错误不仅仅局限与你的模板文件上的错误,也可能包括你的文章中出现的错误。当你正在[[WordPress:Writing Posts|写一篇文章],使用HTML时,WordPress可能不能识别HTML,也不能 将它转变为字符实体,或者你将它输错了。如果你有一个网页,网页上有许多的HTML代码,确认这些代码,以确认这些代码都是正确的。不是地随意检查一篇文章,以确保每个部分每时都是正确的,并把这个作为你的系统管理的一个部分。

Validation doesn't just mean putting your pages through some web driven testers. It also means test-driving it with friends, relatives, co-workers, and strangers. Everyone has a different system and way of working, so ask for others to test-drive your styles or themes before you make them public.

确认比仅仅意味着使你的网页通过一些网络驱使的检测器。确认过程也意味着和朋友,亲戚,合作者,和陌生人,共同地来对网页进行检测。每一个人都有一个不同的系统和不同的工作方式,因此在将你的样式和主题公共化之前,叫其它的人来试运行你的样式和主题。

The Your WordPress section in the WordPress Forums is dedicated to helping WordPress users in getting feedback about their sites. WordPress volunteers will do that for you for free. Be sure and read the WordPress Site Reviews Guidelines. Help is also at hand there to solve your problems, and reviewers might just go 'ooooh' and 'ahhhhhhh' over your web site, which is very gratifying, we hear :).

WordPress 论坛中的你的 WordPress部分专门用来帮助WordPress用户得到关于他们的站点的反馈。确保阅读了WordPress站点回顾指导方针。在这儿你也可以随手能得到帮助来解决你的问题,而且评论员可能只是在你的站点上进新了'ooooh' 和 'ahhhhhhh',我们听到的这个,是非常令我们满足的:)

Validation Checklist

确认清单

To help you validate your WordPress site, here is a quick checklist: 帮助你确认你的WordPress站点,下面的是一个快捷的清单:

  1. Validate HTML/XHTML


  1. 确认 HTML/XHTML


  1. Validate CSS
  2. 确认CSS
  1. Validate for Section 508 Standards (accessibility)
  2. 确认508标准部分(访问权限)
  1. Validate for Section 508 Standards (accessibility)
  2. 确认508标准部分(访问权限)
  1. Validate for WAI standards (accessibility)
  2. 确认WAI标准(访问权限)
  1. Validate Links (check for dead links)
  2. 确认链接(检查不能使用的链接
  3. Validate Feeds
  4. 确认Feeds
  5. Check across different browsers (include handheld computers, Mac, PC, and cellphones, too)
  6. 检查不同的浏览器(包括手提电脑,Mac,PC,和手机)
  7. Re-validate HTML and CSS
  8. 再次确认HTML和CSS
  9. Have friends, relatives, co-workers check your site
  10. 让朋友,亲戚,合作者来检查你的站点
  11. When ready, you can post your site on the WordPress Forum's Your WordPress for review
  12. 准备好了以后,你可以将你的站点在WordPress论坛的你的WordPress回顾上反表。

HTML - Validation

HTML – 确认















CSS - Validation

CSS – 确认







Validation by Uploading Files

通过上传文件来确认





Feeds Validation

Feeds 确认



Validation Resources and Articles

关于确认的资源和文章




Related

相关的