begin htmlHandler