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