Home  >  Article  >  Web Front-end  >  Explanation of CDATA tags in web pages_Basic knowledge

Explanation of CDATA tags in web pages_Basic knowledge

WBOY
WBOYOriginal
2016-05-16 18:19:401163browse

CDATA is a keyword used in XML documents to tell the browser that this part of the content does not need to be parsed and is used by other programs, such as JAVASCRIPT and so on.

PCDATA is used in XML constraint documents, such as DTD type constraint documents, where it represents the content of elements or the value range of attributes, etc., in the form of strings.

Copy code The code is as follows:

<script> <br><![CDATA [ <BR>function matchwo(a,b){ <BR>if (a < b && a < 0){ <BR>return 1; <BR>}else{ <BR>return 0; <BR>} <BR>} <BR>]]> <br></script>


XML CDATA Description
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn