Do not generate HTML when it is not required, format code