通过 w3c 验证器验证 HTML 时出错

发布于 2025-01-02 06:15:58 字数 367 浏览 3 评论 0原文

我正在尝试通过 w3c 验证器验证我的网站,但出现以下错误:

Line 62, Column 393: & did not start a character reference. (& probably should have been escaped as &.)
…mysite.com/projects/bnd?page=catagory&id=10">asdas</a> (67)</li><li><a href="

我已修复所有其他问题,但在 URL 中使用 & 不是有效的 w3c URI。那么我如何验证我的网站呢?

I am trying to validate my site through the w3c validator, but am getting the following error:

Line 62, Column 393: & did not start a character reference. (& probably should have been escaped as &.)
…mysite.com/projects/bnd?page=catagory&id=10">asdas</a> (67)</li><li><a href="

I have fixed all other things, but using & in a URL is not a valid w3c URI. How then could I validate my site?

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

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

发布评论

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

评论(2

救赎№ 2025-01-09 06:15:58

像这样使用 &

<a href="http://mysite.com/projects/bnd?page=catagory&id=10">

Use & like this:

<a href="http://mysite.com/projects/bnd?page=catagory&id=10">
坐在坟头思考人生 2025-01-09 06:15:58

搜索第 62 行的 & 并将其替换为 &

search and replace the & at line 62 with&

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