在段落元素中使用特殊字符时收到警告 [英] Getting a warning when using special characters in paragraph element
问题描述
我正在使用HTML5 CSS3 ...我必须显示一个具有特殊字符的句子。但是当我在段落元素中指定我的句子时,它会给我一个警告......
I am working with HTML5 CSS3... I have to display a sentence which has special characters.But when I specify my sentence in paragraph element its giving me a warning...
<p>Due to the related impact on the F&A proposal this action ....... (ex: controller's.....</p>
它向我显示一个警告三角形,说明无效字符。任何人都可以告诉我如何避免这个警告......
Its displaying me a warning triangle stating invalid character..Can anybody tell me how can avoid this warning...
我也试过用和对于特殊字符,但它没有删除警告...
I also tried using "" and '' for the special characters , but its not removing the warning...
推荐答案
警告是因为HTML期望像& Acute;
但不完整。如果您使用& amp;
而不是&
警告应该消失
The warning is because HTML expecting something like &Acute;
but its not complete. If you use &
instead of &
the warning should go away
你的代码将最终成为:
<p>
Due to the related impact on the F&A proposal this action .......
(ex: controller's.....
</p>
这篇关于在段落元素中使用特殊字符时收到警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!