What Is CDATA

Q

What Is CDATA? - XHTML Tutorials - Introduction To Element Content Syntax

✍: FYIcenter.com

A

CDATA stands for Character DATA, which is used to define a section of data that should not go through the XHTML entity translation (parsing) process. In other words, 3 special characters: "<", ">", and "&" can be directly used in CDATA. They will not be "parsed".

CDATA must starts with "<![CDATA[" and ends with "]]>". Here are some good examples:

  <![CDATA[Adam & Eve]]>
  <![CDATA[
    Sample XHTML code:
    <p>1</p>
    <p>1 1</p>
    <p>1 2 1</p>
    <p>1 3 3 1</p>
    <p>1 4 6 4 1</p>
  ]]>

2007-05-12, 4681👍, 0💬