Fixed many issues in output HTML code according to HTML 4.01 Transitional format.