WordPress: Validating a Website:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: 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 ...)
 
无编辑摘要
第1行: 第1行:
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.  
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 [http://w3c.org W3C Organization] and pass a variety of validations for [[WordPress:Glossary#CSS|CSS]] and [[WordPress:Glossary#XHTML|XHTML]].
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 [http://w3c.org W3C Organization] and pass a variety of validations for [[WordPress:Glossary#CSS|CSS]] and [[WordPress:Glossary#XHTML|XHTML]].
符合标准和规则是使广泛的人群了解你的站点的方法之一。确保你的代码和形式在面板上是有效的。这意味着它们要符合[http://w3c.org W3C 阻止]所规定的"严格的"标准,并且为[[WordPress:Glossary#CSS|CSS]] 和[[WordPress:Glossary#XHTML|XHTML]]通过许多的确认过程。


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 [http://www.w3.org/QA/Tools/ web page validators].
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 [http://www.w3.org/QA/Tools/ web page validators].
并不是所有的validators都核对同样的内容。有的只核对CSS,有的核对XHML,还有其它的核对可访问性。如果你非常真诚地想要向公众显示标准的网页,用几个validators将这些网页测试一下。环球网团体设置了标准,同时也托管了许多的[http://www.w3.org/QA/Tools/ 网页 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 [[WordPress:Accessibility|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.
In simple terms, validation ensures that your website complies with the standards accepted by most web designers. That also means that it  will be [[WordPress:Accessibility|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=
=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 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 [[WordPress:Using Themes|Themes]] and [[WordPress:Templates|template files]] in WordPress, while you may fix all the errors associated with the <tt>index.php</tt> and <tt>sidebar.php</tt> when viewing your front page, errors may still lie within any other template files such as <tt>single.php</tt>, <tt>page.php</tt>, <tt>archives.php</tt>, or <tt>category.php</tt>. Validate these page views as well to make sure you cover all the template files.
Validating your WordPress site means more than just checking the front page for errors. With the modular [[WordPress:Using Themes|Themes]] and [[WordPress:Templates|template files]] in WordPress, while you may fix all the errors associated with the <tt>index.php</tt> and <tt>sidebar.php</tt> when viewing your front page, errors may still lie within any other template files such as <tt>single.php</tt>, <tt>page.php</tt>, <tt>archives.php</tt>, or <tt>category.php</tt>. Validate these page views as well to make sure you cover all the template files.
确认你的WordPress站点意味着不仅仅检查首页上的错误。根据WordPress中的模的[[WordPress:Using Themes|标题]] 和 [[WordPress:Templates|标题文件]],当你访问你的首页的时候,你可能解决了所有的与<tt>index.php</tt>和<tt>sidebar.php</tt>相关的问题,但是问题可能仍然存在任何其它的模板文件中,例如<tt>single.php</tt>, <tt>page.php</tt>, <tt>archives.php</tt>, 或者<tt>category.php</tt>。确认这些网页浏览,同时确保你检查了所有的模板文件。


Validation errors aren't limited to your template files. They can also happen inside of a post. When you are [[WordPress:Writing Posts|writing a post]] and using HTML, WordPress might not recognize the HTML and [[WordPress:Writing_Code_in_Your_Posts|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 [[WordPress:WordPress Housekeeping|housekeeping]].
Validation errors aren't limited to your template files. They can also happen inside of a post. When you are [[WordPress:Writing Posts|writing a post]] and using HTML, WordPress might not recognize the HTML and [[WordPress:Writing_Code_in_Your_Posts|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 [[WordPress:WordPress Housekeeping|housekeeping]].
确认错误不仅仅局限与你的模板文件上的错误,也可能包括你的文章中出现的错误。当你正在[[WordPress:Writing Posts|写一篇文章],使用HTML时,WordPress可能不能识别HTML,也不能 [[WordPress:Writing_Code_in_Your_Posts|将它转变为字符实体]],或者你将它输错了。如果你有一个网页,网页上有许多的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.  
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 [http://wordpress.org/support/forum/11 Your WordPress] section in the [http://wordpress.org/support/ 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:WordPress_Site_Reviews|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 :).
The [http://wordpress.org/support/forum/11 Your WordPress] section in the [http://wordpress.org/support/ 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:WordPress_Site_Reviews|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 :).
[http://wordpress.org/support/ WordPress 论坛]中的[http://wordpress.org/support/forum/11 你的 WordPress]部分专门用来帮助WordPress用户得到关于他们的站点的反馈。确保阅读了[[WordPress:WordPress_Site_Reviews|WordPress站点回顾指导方针]]。在这儿你也可以随手能得到帮助来解决你的问题,而且评论员可能只是在你的站点上进新了'ooooh' 和 'ahhhhhhh',我们听到的这个,是非常令我们满足的:)


==Validation Checklist==
==Validation Checklist==
==确认清单==


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


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


=HTML - Validation=
=HTML - Validation=
=HTML – 确认=


* [http://www.w3.org/QA/Tools/ W3C's Collection of Validators]
* [http://www.w3.org/QA/Tools/ W3C's Collection of Validators]
* [http://www.w3.org/QA/Tools/ W3C 收集的Validators]
* [http://bobby.watchfire.com/bobby/html/en/index.jsp Watchfire's Bobby Validator for Standards and Accessibility] - hardest to pass
* [http://bobby.watchfire.com/bobby/html/en/index.jsp Watchfire's Bobby Validator for Standards and Accessibility] - hardest to pass
* [http://bobby.watchfire.com/bobby/html/en/index.jsp Watchfire的关于标准和访问权限的Bobby Validator] –最难通过的
* [http://cgi.w3.org/cgi-bin/tidy W3C Tidy Online]
* [http://cgi.w3.org/cgi-bin/tidy W3C Tidy Online]
* [http://cgi.w3.org/cgi-bin/tidy W3C Tidy 在线]
* [http://www.silktide.com/ Silk Tide Online Validator for Errors and Accessibility]
* [http://www.silktide.com/ Silk Tide Online Validator for Errors and Accessibility]
* [http://www.silktide.com/ Silk Tide Online Validator 关于错误和访问权限]
* [http://perso.wanadoo.fr/ablavier/TidyGUI/ Windows GUI Interface for TIDY]
* [http://perso.wanadoo.fr/ablavier/TidyGUI/ Windows GUI Interface for TIDY]
* [http://perso.wanadoo.fr/ablavier/TidyGUI/ Windows GUI Interface for TIDY]
* [http://sitereportcard.com/ Site Report Card Validator]
* [http://sitereportcard.com/ Site Report Card Validator]
* [http://sitereportcard.com/ Site Report Card Validator]
* [http://valet.webthing.com/page/ Valet Webthing.com]
* [http://valet.webthing.com/page/ Valet Webthing.com]
* [http://valet.webthing.com/page/ Valet Webthing.com]
* [http://validator.w3.org/ The W3C's HTML Validation Service] (URL and upload)
* [http://validator.w3.org/ The W3C's HTML Validation Service] (URL and upload)
* [http://validator.w3.org/ The W3C's HTML 确认服务] (URL和上传)
* [http://watson.addy.com/ Watson Addy's Validator]
* [http://watson.addy.com/ Watson Addy's Validator]
* [http://watson.addy.com/ Watson Addy的Validator]
* [http://www.alpineinternet.com/.docs/pg/drhtml.html Alpine Internet HTML Validator]
* [http://www.alpineinternet.com/.docs/pg/drhtml.html Alpine Internet HTML Validator]
* [http://www.alpineinternet.com/.docs/pg/drhtml.html Alpine 因特网 HTML Validator]
* [http://www.anybrowser.com/validateit.html AnyBrowser's HTML Validation]
* [http://www.anybrowser.com/validateit.html AnyBrowser's HTML Validation]
* [http://www.anybrowser.com/validateit.html 任何浏览器的 HTML确认]
* [http://www.cynthiasays.com/ Cynthia Says Validator]
* [http://www.cynthiasays.com/ Cynthia Says Validator]
* [http://www.cynthiasays.com/ Cynthia Says Validator]
* [http://www.doctor-html.com/RxHTML/ Doctor-HTML Validator]
* [http://www.doctor-html.com/RxHTML/ Doctor-HTML Validator]
* [http://www.doctor-html.com/RxHTML/ Doctor-HTML Validator]
* [http://www.htmlvalidator.com/lite/onlineval.php HTMLvalidator.com's Validator]
* [http://www.htmlvalidator.com/lite/onlineval.php HTMLvalidator.com's Validator]
* [http://www.htmlvalidator.com/lite/onlineval.php HTMLvalidator.com's Validator]
* [http://www.softwareqatest.com/qatweb1.html Software QA and Testing Resource Center]
* [http://www.softwareqatest.com/qatweb1.html Software QA and Testing Resource Center]
* [http://www.softwareqatest.com/qatweb1.html 软件 QA 和测试资源中心]
* [http://www.tafweb.com/tagcheck.html HTML Tag Checker]
* [http://www.tafweb.com/tagcheck.html HTML Tag Checker]
* [http://www.tafweb.com/tagcheck.html HTML 标签 Checker]
* [http://www.w3.org/People/Raggett/tidy/ W3.org Tidy Validator]
* [http://www.w3.org/People/Raggett/tidy/ W3.org Tidy Validator]
* [http://www.w3.org/People/Raggett/tidy/ W3.org Tidy Validator]


=CSS - Validation=
=CSS - Validation=
=CSS – 确认=


* [http://jigsaw.w3.org/css-validator/ W3.org's CSS Validator] (URL, upload, and direct paste in)
* [http://jigsaw.w3.org/css-validator/ W3.org's CSS Validator] (URL, upload, and direct paste in)
* [http://jigsaw.w3.org/css-validator/ W3.org's CSS Validator] (URL, 上传,和直接地粘贴进来)
* [http://www.style-sheets.com/validator.asp Style-Sheets.com Validator] (browser specific)
* [http://www.style-sheets.com/validator.asp Style-Sheets.com Validator] (browser specific)
* [http://www.style-sheets.com/validator.asp Style-Sheets.com Validator] (特别的浏览器)
* [http://jigsaw.w3.org/css-validator/validator-uri.html.en W3C Style sheet validator]
* [http://jigsaw.w3.org/css-validator/validator-uri.html.en W3C Style sheet validator]
* [http://jigsaw.w3.org/css-validator/validator-uri.html.en W3C 样式表validator]
* [http://www.htmlhelp.com/tools/csscheck/ WDG and HTMLhelp.com's CSS Validator and Checker]
* [http://www.htmlhelp.com/tools/csscheck/ WDG and HTMLhelp.com's CSS Validator and Checker]
* [http://www.htmlhelp.com/tools/csscheck/ WDG and HTMLhelp.com's CSS Validator and Checker]


=Validation by Uploading Files=
=Validation by Uploading Files=
=通过上传文件来确认=


* [http://jigsaw.w3.org/css-validator/ W3.org's CSS Validator]
* [http://jigsaw.w3.org/css-validator/ W3.org's CSS Validator]
* [http://jigsaw.w3.org/css-validator/ W3.org's CSS Validator]
* [http://searchengineworld.com/validator/file-upload.htm Searchengineworld's HTML File Upload Validator]
* [http://searchengineworld.com/validator/file-upload.htm Searchengineworld's HTML File Upload Validator]
* [http://searchengineworld.com/validator/file-upload.htm Searchengineworld's HTML 文件上传Validator]
* [http://www.htmlhelp.com/tools/csscheck/ WDG and HTMLhelp.com's CSS Validator and Checker] (URL, upload, and direct paste)
* [http://www.htmlhelp.com/tools/csscheck/ WDG and HTMLhelp.com's CSS Validator and Checker] (URL, upload, and direct paste)
* [http://www.htmlhelp.com/tools/csscheck/ WDG and HTMLhelp.com's CSS Validator and Checker] (URL, 上传, 和直接粘贴)
* [http://validator.w3.org/ The W3C's HTML Validation Service] (URL and upload)
* [http://validator.w3.org/ The W3C's HTML Validation Service] (URL and upload)
* [http://validator.w3.org/ The W3C的 HTML 确认服务器] (URL 和上传)
* [http://www.htmlhelp.com/tools/validator/upload.html HTMLHelp's File Upload HTML Validator]
* [http://www.htmlhelp.com/tools/validator/upload.html HTMLHelp's File Upload HTML Validator]
* [http://www.htmlhelp.com/tools/validator/upload.html HTMLHelp的文件上传HTML Validator]


=Feeds Validation=
=Feeds Validation=
=Feeds 确认=


*[http://feedvalidator.org/ Feedvalidator.org] - for Atom and RSS feeds.
*[http://feedvalidator.org/ Feedvalidator.org] - for Atom and RSS feeds.
*[http://feedvalidator.org/ Feedvalidator.org] –关于Atom 和 RSS feeds.
*[http://www.ldodds.com/rss_validator/1.0/validator.html Experimental RSS 1.0 Validator]
*[http://www.ldodds.com/rss_validator/1.0/validator.html Experimental RSS 1.0 Validator]
*[http://www.ldodds.com/rss_validator/1.0/validator.html Experimental RSS 1.0 Validator]
*[http://librdf.org/rss/ Redlands RSS 1.0 Validator]
*[http://librdf.org/rss/ Redlands RSS 1.0 Validator]
*[http://librdf.org/rss/ Redlands RSS 1.0 Validator]
*[http://feeds.archive.org/validator/ Feeds.archives.org]
*[http://feeds.archive.org/validator/ Feeds.archives.org]
*[http://feeds.archive.org/validator/ Feeds.archives.org]


=Validation Resources and Articles=
=Validation Resources and Articles=
=关于确认的资源和文章=


* [[WordPress:Writing Code in Your Posts]]
* [[WordPress:Writing Code in Your Posts]]
* [[WordPress:Writing Code in Your Posts|在你的文章中写代码]]
* [http://www.fixingyourwebsite.com/ Fixing Your Website]
* [http://www.fixingyourwebsite.com/ Fixing Your Website]
* [http://www.fixingyourwebsite.com/ Fixing Your Website|解决你的站点问题]
* [http://home.columbus.rr.com/mfreeman/web_validation.htm Mark Freeman's Many Links to Validation Resources]
* [http://home.columbus.rr.com/mfreeman/web_validation.htm Mark Freeman's Many Links to Validation Resources]
* [http://home.columbus.rr.com/mfreeman/web_validation.htm Mark Freeman的许多对于确认资源的链接]
* [http://www.squarefree.com/bookmarklets/validation.html Squarefree's Bookmarketlets] (JavaScript for web page testing)
* [http://www.squarefree.com/bookmarklets/validation.html Squarefree's Bookmarketlets] (JavaScript for web page testing)
* [http://www.squarefree.com/bookmarklets/validation.html Squarefree's Bookmarketlets] (JavaScript 的网页测试)
* [http://www.walidator.com/ Walidator.com]
* [http://www.walidator.com/ Walidator.com]
* [http://www.walidator.com/ Walidator.com]
* [http://webdesign.about.com/library/weekly/aa041000a.htm Understanding How HTML Validators Work]
* [http://webdesign.about.com/library/weekly/aa041000a.htm Understanding How HTML Validators Work]
* [http://webdesign.about.com/library/weekly/aa041000a.htm 了解HTML Validators 是怎样运行的]
* [http://www.evolt.org/article/You_Call_em_That_em_Web_Site_Testing/25/2396/index.html You Call That Web Site Testing?]
* [http://www.evolt.org/article/You_Call_em_That_em_Web_Site_Testing/25/2396/index.html You Call That Web Site Testing?]
* [http://www.evolt.org/article/You_Call_em_That_em_Web_Site_Testing/25/2396/index.html你称那个为站点测试?]
* [http://www.maccaws.org/kit/primer/ What Every Web Site Owner Should Know About Standards: A Web Standards Primer]
* [http://www.maccaws.org/kit/primer/ What Every Web Site Owner Should Know About Standards: A Web Standards Primer]
* [http://www.maccaws.org/kit/primer/ What Every Web Site Owner Should Know About Standards: 一个网络标准Primer]
* [http://www.youthtopia.net/acontent/wpaccess.htm WordPress和网络访问权限简介]
* [http://www.youthtopia.net/acontent/wpaccess.htm A Brief Introduction to WordPress and Web Accessibility]
* [http://www.youthtopia.net/acontent/wpaccess.htm A Brief Introduction to WordPress and Web Accessibility]
* [http://www.youthtopia.net/acontent/wpaccess.htm WordPress 和网络访问权限简介]


=Related=
=Related=
=相关的=


* [[WordPress:Accessibility]]
* [[WordPress:Accessibility]]
* [[WordPress:Accessibility|访问权限]]

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

相关的