ensure non-void elements have close tags