\documentclass{book} \newenvironment{mylist} {\trivlist}{\endtrivlist} \usepackage[mycfg]{tex4ht} \begin{document} \begin{mylist} \item First item \item Second item \end{mylist} \end{document}
and a possible configuration file `mycfg.cfg
' for the source file:
\Preamble{html} \ConfigureList{mylist} {\HCode{<DIV CLASS="mylist">}} {\HCode{</DIV>}} {* }{} \Css{.mylist { color : red; }} % see cascade style sheets for % the meaning of \Css \begin{document} \HCode{<!--created by me-->} \EndPreamble