0

这是网站: http ://prodontic.com/cs2/index.php?q=conscience-statements&record=8

这是 W3C 验证报告: http: //validator.w3.org/check ?uri=http%3A%2F%2Fprodontic.com%2Fcs2%2Findex.php%3Fq%3Dconscience-statements%26record%3D8&charset=%28detect+automatically %29&doctype=内联&group=0&user-agent=W3C_Validator%2F1.3+http%3A%2F%2Fvalidator.w3.org%2Fservices

这不会验证,但验证器没有给出任何关于如何使用参数构建 URL 的指示。

这必须很简单,但我似乎无法弄清楚......我错过了什么?

提前致谢。

4

2 回答 2

3

只需将&HTML 中的 URL替换为&.

因此,例如,替换

<a href='index.php?q=conscience-statements&record=7'>&laquo;</a>

<a href='index.php?q=conscience-statements&amp;record=7'>&laquo;</a>
于 2013-07-12T00:56:42.003 回答
1

你说:but the validator does not give any indication about how to build URLs with parameters

这很奇怪,W3C 的错误描述(反复)清楚地指出:
& probably should have been escaped as &amp;

另外,看看这个答案:https ://stackoverflow.com/a/3493425/588079

希望有帮助!

于 2013-07-12T00:57:34.717 回答