freecoding.school100% FREE · NO SIGNUP
Markup CityISSUE #12 of 39

comments · notes the browser ignores

Tagg the BuilderVSThe Unclosed Tag
Tagg the Builder saysComments <!-- like this --> are notes in your source the browser ignores entirely.

Wrap anything in <!-- --> and the browser skips it. Use comments to explain tricky markup, leave TODOs, or temporarily disable a chunk without deleting it.

Remember comments are visible to anyone who views source — never put secrets in them. And don't nest comments; the first --> closes the whole thing, which can accidentally re-enable code you meant to hide.

Power-ups you unlock

The Unclosed Tag attacks — common mistakes

Boss battleComment out the second paragraph so it disappears from the preview, then uncomment it.

Example code

<!doctype html>
<html><head><meta charset="utf-8"></head>
<body>
  <!-- this note never renders -->
  <h1>visible heading</h1>
  <!-- <p>this paragraph is disabled</p> -->
</body></html>
▶ Open the interactive comic issue
‹ Quotations · Blockquote · Cite · QColors · Names · Hex · Rgb · Hsl ›