TalentJR apps
A comment is a note in your code for people, not for the browser. HTML comments start with a bracket, an exclamation mark and two dashes, and end with two dashes and a bracket. The browser does not show anything inside a comment, so coders use comments to explain their code or to switch a line off for a while. Anyone can still read comments by viewing the page source, so never put passwords in them.
✓ You passed this lesson’s test.
Hidden notes — “anything inside a comment is not shown on the page”
Use it for: Leaving notes in your code, hiding a line while testing, and reading other people’s code.
Check: Only “Our school trip” and “Fun facts” show ✓
▶ Watch it animated✓ Written and checked by the TalentJR team · Updated 13 Oct 2026 · How we make our lessons
Work it out in your head or on paper, then tap your answer — or type it and press Check. Stuck? Press “Show me how”.
Right: 0 · Tried: 0
20 questions. Check each answer, then go to the next one. Get 16 or more right to pass.
🏅 Sign in with Google to earn the 💬 Comment Whisperer badge when you pass — and a certificate when you finish all 10 lessons of Part 1 · HTML Basics. You can still take the test without signing in.
Why does it work? When should you use it? Ask in English, मराठी or हिंदी.
Sign in with Google to ask Free — 20 questions a day.
Prefer a real teacher? TalentJR teachers take live online classes anywhere in India. Tell us what you need and our team will call you with timings and fees.