Note also that the top-level HTML object adds newlines between tags by default. Finally in the above you’ll see an empty paragraph tag - tags with no contents get no closing tag.
If the tag should have sub-tags you have two options. You may either add the sub-tags directly on the tag: