[exit example]
 
 \documentclass{book}
 
 \input TeX4ht.sty
 \Preamble{html}   \begin{document}
 \EndPreamble
 
 \TocAt{section,subsection,/likechapter}
 \CutAt{subsection,section,likechapter}
 
 \section{My heart} is not
 haughty,
 \subsection{nor mine} eyes lofty:
 
 \section{neither do}  I exercise
 myself in great matters,
 \subsection{or in} things
 \subsection{too  high} for me.
 
 \chapter*{Psalms}
 
 \section*{(131:1)}
 
 \end{document}
[download source]
Non-simulated output:
mn-25.html

0.1 My heart 

      0.1.1 nor mine

is not haughty,

0.2 neither do 

      0.2.1 or in
      0.2.2 too high

I exercise myself in great matters,

(131:1)