prototype of html writer