break up html into logical pieces