CDATA and comment
生活随笔
收集整理的這篇文章主要介紹了
CDATA and comment
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
<?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的原創(chuàng)文章,請關(guān)注公眾號"汪子熙”:
總結(jié)
以上是生活随笔為你收集整理的CDATA and comment的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 重启 DC 宇宙,《闪电侠》电影确认引进
- 下一篇: 我们是冠军!小伙建老年人战队 拿下当地L