What Is a Required Sub-element


What Is a Required Sub-element? - XHTML Tutorials - Introduction To Element Content Syntax

✍: FYIcenter.com


A required sub-element is a sub-element that you must included in the parent element. Most sub-elements are optional. But there are some sub-elements that are required by their parent elements.

Here are two good examples:

  <!-- Valid: "head" requires "title" -->
    <title>XHTML FAQs by FYIcenter.com</title>

  <!-- Valid: "ul" requires "li" -->
    <li>Hope you like it.</li>

2007-05-12, 4658👍, 0💬