To comment on the html code (and javascript / php code), select the section of code you want to comment on and use Ctrl + Shift + C ( Cmd + Shift + C for Mac). For html code, this adds <!-- -->
tags around your code.
To uncomment, select the commented code and use the same shortcut on the keyboard. This will remove the comment tags.
source share