The document used here is a body whose children are an h1 and a p, in that order. The h1 contains only the text Robotics. The p contains the text Meet, then an em element, then the text at 4. The em contains the text Tuesday. There is no div, no link, and no image in this first tree. A preorder walk lists a parent before its children and keeps siblings in source order. The element names in preorder are body, h1, p, em. The h1 comes before the p because it is the earlier child of body. The em comes after the p has been entered, not after the paragraph has been finished.
The visible text of the paragraph, reading element text in order, is Meet Tuesday at 4. The spaces are part of the text nodes. If you drop them, you invent MeetTuesday. The heading text Robotics is not part of the paragraph. A function that concatenates every text node under body produces RoboticsMeet Tuesday at 4 unless it inserts separators the document does not have.
The parent of em is p. The parent of p is body. The parent of h1 is body. The h1 and the em are not siblings. A sibling check asks whether two nodes have the same parent. h1 and p are siblings. em and the text Meet are siblings inside p, and one of those siblings is text rather than an element. Count element nodes separately from text nodes. This tree has four elements: body, h1, p, and em. It has four text nodes: Robotics, Meet, Tuesday, and at 4. A student who counts every node and reports 4 has counted only the elements. A student who reports 8 has counted both kinds. The question has to say which count it wants.