[英]How can write '<' in HTML tag?
I wanna write text between of a tag that it should have < . 我想在它应该有的标签之间写文字<。 but I can write it
但我可以写出来
for example 例如
<div class="SampleDiv">Text1<Text2<Text3</div>
How can fix this problem? 怎么解决这个问题?
You need to read about HTML entities . 您需要阅读有关HTML实体的信息 。 In this case, the
<
character should be replaced with <
在这种情况下,
<
字符应替换为<
Just use & together with #60; 只需和#60一起使用&; instead of the "<" or & together with #62 instead of the ">".
而不是“<”或&#与#62而不是“>”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.