Generate HTML for chapter