codegurukool.com · Free coding tutorials & online compiler

Home › HTML Tutorial › HTML comments

HTML comments

Notes the browser ignores.

Comments start with <!-- and end with -->. Use them for notes or to hide code while testing.

Example code

<!-- This is hidden -->
<p>Visible</p>
<!-- <p>Also hidden</p> -->'

Run this code in the online editor

← Quotations and citationsHTML colors →