Skip to content
Justice Tech School

Comments and Code Hygiene

Comments are ignored by browsers. Use them to explain tricky parts or to temporarily disable code. Never put secrets in comments because anyone can view source.

Example
<!-- This is hidden -->
<p>Visible text</p>
<!-- <p>Disabled paragraph</p> -->

Exercise

Start a comment.

 note -->

Quiz Test

Can users see HTML comments?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.