简体   繁体   English

你需要HTML编码标题标签吗?

[英]Do you need to HTML encode Title tags?

Should you HTMLencode Title tags in the head section of an HTML page? 你应该在HTML页面的head部分HTMLencode Title标签吗?

eg <title>This & That</title> 例如<title>This & That</title>

or <title>This &amp; That</title> <title>This &amp; That</title> <title>This &amp; That</title>

Yes you should use &amp; 是的你应该使用&amp; instead of & inside your <title> tag, same with any other tag in your HTML or XML document. 代替<title>标记内的& ,与HTML或XML文档中的任何其他标记相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM