欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

CDATA and comment

发布时间:2023/12/19 编程问答 37 豆豆
生活随笔 收集整理的这篇文章主要介绍了 CDATA and comment 小编觉得挺不错的,现在分享给大家,帮大家做个参考.
<?xml version="1.0" encoding="UTF-8" standalone="no" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" > <head> <title>CDATA Example</title> </head> <body><h2>Using a Comment</h2> <div id="commentExample"> <!-- You won't see this in the document and can use reserved characters like < > & " --> </div><h2>Using a CDATA Section</h2> <div id="cdataExample"> <![CDATA[ You will see this in the document and can use reserved characters like < > & " ]]> </div></body> </html>

A CDATA section is "a section of element content that is marked for the parser to interpret as only character data, not markup.“要获取更多Jerry的原创文章,请关注公众号"汪子熙”:

总结

以上是生活随笔为你收集整理的CDATA and comment的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。