how to write html comment code example Example 1: commenting in html <!-- a comment in html --> Example 2: how to comment in html <!-- your comment goes here -->