COMP 2511 Showcase 2: Complex Nested Structures



Technology Overview & Description

Proper Document Object Model (DOM) nesting ensures that HTML elements are closed in the exact reverse order of their opening tags [4]. Complex structures such as multi-level lists (<ul>, <ol>), definition lists (<dl>), and data tables (<table>) require precise tag hierarchy so that screen readers and layout engines parse the relationship between parent and child nodes correctly [3], [4].

Tag Hierarchy Summary


Implementation Example & Rendering

Screenshot of markup displaying nested tables and sublists
Figure 1: Source code showing nested list and table DOM structures.
Screenshot of browser rendering nested table and list
Figure 2: Browser rendering of nested HTML components.

Development Reflection & Growth

Learning to nest elements correctly was one of my biggest debugging challenges. Initially, I accidentally placed nested <ul> lists outside of parent <li> tags, which produced invalid HTML syntax. Using visual indentation and validating the code against the W3C standards taught me how improper DOM nesting breaks accessibility tools. Constructing complex data tables with explicit header associations helped me appreciate the precise logic required for strict web development.