为什么此代码在 W3C 验证器中显示错误?
为什么此代码在 W3C 验证器中显示错误 “此处不允许使用字符数据”
<blockquote>all visible objects, man, are but as pasteboard masks.
But in each event -- in the living act, the undoubted
deed -- there, some unknown but still reasoning thing
puts forth the mouldings of its feature from behind
the unreasoning mask. If man will strike, strike
through the mask. All visible objects, man, are but as pasteboard masks.
But in each event -- in the living act, the undoubted
deed -- there, some unknown but still reasoning thing
puts forth the mouldings of its feature from behind
the unreasoning mask. If man will strike, strike
through the mask.</blockquote>
在此验证器中没有给出任何错误 http://www.onlinewebcheck.com/
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您不能将文本放入
You can't put text inside a
<blockquote>
tag. You have to wrap it in another element such as a<p>
tag:blockquote
不应直接包含文本。在验证之前,您需要将文本包装在单个p
标记或一系列p
标记中。A
blockquote
is not supposed to directly contain text. You'll need to wrap your text in a singlep
tag or series ofp
tags before it'll validate.来源:w3schools.com
Source: w3schools.com