how to put the html code to comment code example Example 1: how to comment out html <!-- a comment in html --> Example 2: html note <!-- This is an HTML note -->