What Is PCDATA

Q

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

✍: FYIcenter.com

A

PCDATA stands for Parsed Character DATA. Here are some basic rules about PCDATA:

  • PCDATA is a string of characters and XHTML entities.
  • XHTML entities are escape sequences used to refer to special characters that are not so easy to enter them in a text document. For example, "©" is XHTML entity referring to the copyright character: "©".
  • 3 special characters: "<", ">", and "&" can not be used directly in PCDATA. They must be replaced by the corresponding XHTML entities: "&lt;", "&gt;", and "&amp;".
  • If "<" is used in PCDATA, it will be parsed as the beginning of a XHTML tag.
  • If "&" is used in PCDATA, it will be parsed as the beginning of a XHTML entity.

Below you will see some good examples of PCDATA:

  c FYICENTER
  &copy; FYICENTER
  &copy; &#70;&#89;&#73;&#67;&#69;&#78;&#84;&#69;&#82;

2007-05-12, 4937👍, 0💬