Home >> FAQs/Tutorials >> XHTML Tutorials and Tips >> Index

XHTML Tutorial - What Is PCDATA

By: FYIcenter.com

(Continued from previous topic...)

What Is PCDATA?

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;

(Continued on next topic...)

  1. What Is the XHTML Element Content?
  2. What Are the XHTML Element Content Models?
  3. What Are the XHTML Elements Defined with EMPTY Contents?
  4. What Are the XHTML Elements Defined with PCDATA Contents?
  5. What Are the XHTML Elements Defined with Sub-elements Contents?
  6. What Are the XHTML Elements Defined with Mixed Contents?
  7. What Is PCDATA?
  8. What Is an XHTML Entity?
  9. What Is CDATA?
  10. What Is a Sub-element?
  11. Can Two Elements Partially Overlap Each Other?
  12. What Is the Sequence of Sub-elements?
  13. What Is a Required Sub-element?
  14. What Is a White Space Character?
  15. How Exactly White Space Characters Are Ignored?
  16. How To Get an Extra White Space?


Selected Developer Jobs:

More...