make traversal example closer to valid HTML