What Is CDATA in HTML Documents?


What Is CDATA in HTML documents?

✍: FYIcenter.com


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]]>
    Sample XHTML code:
    <p>1 1</p>
    <p>1 2 1</p>
    <p>1 3 3 1</p>
    <p>1 4 6 4 1</p>


What Is a Sub-element in HTML?

HTML Entities

Introduction of HTML Element Content Syntax

⇑⇑ HTML Tutorials

2024-02-28, 1315🔥, 0💬