comment out html brakets javascript code example Example 1: commenting in html <!-- a comment in html --> Example 2: comment in html <!-- this will be ignored -->