简体   繁体   English

如何在防火墙后验证站点标记[HTML / CSS]?

[英]How do I validate site markup [HTML/CSS] behind a firewall?

I am designing a web site but it is behind a firewall and such services like http://validator.w3.org/ will not work. 我正在设计一个网站,但它是在防火墙后面,像http://validator.w3.org/这样的服务将无法正常工作。

Are there any free apps I could run on Windows or Mac OS X that will validate html and css? 我可以在Windows或Mac OS X上运行任何可以验证html和css的免费应用程序吗?

Use the HTML Validator plugin for Firefox 使用Firefox的HTML Validator插件

http://users.skynet.be/mgueury/mozilla/download.html http://users.skynet.be/mgueury/mozilla/download.html

It will even work on HTML files on your PC 它甚至可以在PC上的HTML文件上运行

Note that the (X)HTML validator also has Validate by File Upload and Validate by Direct Input options. 请注意,(X)HTML验证器还具有“ 通过文件上载 验证”和“ 通过直接输入验证”选项。 The CSS validator has a similar set of options. CSS验证器有一组类似的选项。 It would be trivial to write a script that validated automatically using one of those methods. 编写一个使用其中一种方法自动验证的脚本是微不足道的。

另请注意, W3C HTML Validator是开源软件,源代码可在HTML Validator Source中找到

w3验证器确实有'通过直接输入验证'选项(我经常使用)但是TravisO的答案值得选择答案:)

The Web Developer Toolbar for Firefox has "Validate Local HTML" under the Tools menu, which does exactly that. Firefox的Web开发人员工具栏在“工具”菜单下有“验证本地HTML”,就是这样。 And that's only one of about 457 reasons to install the Web Developer Toolbar. 这只是安装Web Developer Toolbar的457个理由中的一个。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM