The LaTeX "html" package (html.sty) can be very useful for the times that you want to conditionally controlling the output in LaTeX documents, but very specifically, when you want one set of output for normal Latex processing (LaTeX PDF output), and another set of output for LaTeX HTML processing.
Here's a very simple example of how you can use this LaTeX HTML package to conditionally control what is output by the LaTeX processor: