How Exactly White Space Characters Are Ignored

Q

How Exactly White Space Characters Are Ignored? - XHTML Tutorials - Introduction To Element Content Syntax

✍: FYIcenter.com

A

White space characters will be processed (ignored) based where they are located:

  • White space characters will be ignored between block elements.
  • White space characters will be preserved in element "pre".
  • White space characters will be preserved in CDATA.
  • Multiple consecutive white space characters will be replaced by a single space character in PCDATA.
  • White space characters will be ignored in EMPTY content elements.

2007-05-12, 4590👍, 0💬