This document provides instructions for an activity involving analyzing the structure of an HTML document through its nodes and subtrees. It outlines identifying the parent nodes, sibling nodes, leaf nodes, nodes per level, depth, and degree of one-level subtrees for the HTML document.
This document provides instructions for an activity involving analyzing the structure of an HTML document through its nodes and subtrees. It outlines identifying the parent nodes, sibling nodes, leaf nodes, nodes per level, depth, and degree of one-level subtrees for the HTML document.
This document provides instructions for an activity involving analyzing the structure of an HTML document through its nodes and subtrees. It outlines identifying the parent nodes, sibling nodes, leaf nodes, nodes per level, depth, and degree of one-level subtrees for the HTML document.
➢ Html ➢ Html – head, body ➢ Head ➢ Head – meta, title ➢ Body ➢ Body – ul, h1, h2 ➢ ul ➢ h2 – a ➢ h2 5. NODES PER LEVEL 2. SIBLINGS ➢ LEVEL 0 – html ➢ Head, body ➢ LEVEL 1 – head, body ➢ Meta, table ➢ LEVEL 2 – metal, title, ul, h1, h2 ➢ ul, h1, h2 ➢ LEVEL 3 – li, li, a ➢ li, li 6. DEPTH 3. LEAF OF NODES ➢ 3 ➢ Meta ➢ Title 7. DEGREE OF EACH ONE-LEVEL ➢ h1 SUBSTREE ➢ li ➢ Substree html – 2 ➢ li ➢ Substree head – 2 ➢ a ➢ Substree body – 3 ➢ Substree ul – 2 ➢ Substree h2 - 1