CDATA and comment
生活随笔
收集整理的这篇文章主要介绍了
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的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: 重启 DC 宇宙,《闪电侠》电影确认引进
- 下一篇: SAP UI5 Drop down li