how to add comments to HTML code code example Example 1: commenting in html <!-- a comment in html --> Example 2: html comments <!-- i am a comment -->