Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What Are the XHTML Element Content Models
What Are the XHTML Element Content Models? - XHTML Tutorials - Introduction To Element Content Syntax
✍: FYIcenter.com

There are 4 content models defined for XHTML elements:
1. EMPTY - No content. Nothing between the opening tag and the closing tag. For example:
<br/> - "br" element has no content. <br></br> - Same as above. <meta name="Author" content="FYICenter.com"/>
2. PCDATA - Parsed Character DATA. A string of characters and character entities. Empty content is allowed in this model. But no other XHTML elements are allowed in the content.
  <!-- PCDATA: Pure character string -->
  <title>My First XHTML Document</title>
  <!-- PCDATA: Empty string -->
  <textarea rows="4" cols="40"></textarea>  
  <!-- PCDATA: Characters mixed with entities -->
  <textarea rows="4" cols="40">
    while ($i=0; $i<3; %i++) print "Knock ";
  </textarea>  
3. Sub-elements only - A sequence of sub-elements. No character strings are allowed in the content.
<!-- Sub-elements only: "head" can only take sub-elements like "title" and "meta" --> <head> <title>My First XHTML Document</title> <meta name="Author" content="FYICenter.com"/> </head> <!-- Sub-elements only: "tr" can only take sub-elements like "td" --> <tr> <td>Author:</td> <td>FYIcenter.com</td> </tr> <!-- Sub-elements only: "ul" can only take sub-elements like "li" --> <ul> <li>My First XHTML Document</li> </ul>
4. Mixed - A mixture of PCDATA and sub-elements. Empty content is also allowed in this model.
<!-- Mixed content: "p" is having text strings mixed an "em" element --> <p>The nature of <em>yin and yang</em> is relative.</p> <!-- Mixed content: "td" is having text strings mixed with a "p" element --> <td>Dear Visitor, <p>Welcome to FYIcenter.com!</p> Thank you. </td>
2007-05-12, 4947👍, 0💬
Popular Posts:
Can static variables be declared in a header file? You can't declare a static variable without defin...
How can you implement MVC pattern in ASP.NET? The main purpose using MVC pattern is to decouple the ...
What Articles Have You Read about JUnit? There are a number of JUnit articles that you should read: ...
Why is it preferred to not use finalize for clean up? Problem with finalize is that garbage collecti...
.NET INTERVIEW QUESTIONS - What is Suspend and Resume in Threading ? It is Similar to Sleep and Inte...