HTML error method modularized.