begin to generate HTML