Add content in html by clicking the checkbox

Do you mean like this ?

Just change append to html.