chapter layout converted to html