novice2022 Which ones out of 4 correct ?
<! --Write comment here -->
<!--Write comment here-->
<!-- Write comment here -->
<! --Write comment here-- >
Middle two display green in NotePad++. Sticking to them.
I typically comment my HTML with both the second and third way of doing it in your question. They both work. The first and fourth way you posted won't work because the 2 dashes need to be right next to the exclamation point for HTTP to ignore it.
I've always also organized my HTML sections with custom element tags like
<headerStuff><head>links and metas etc</head></headerStuff> so I can collapse those entire sections. This allows me to concentrate on the code I'm working on.
Hope this helped and gave some insight.