HTML Inspector — HTML

Find broken markup: 10 levels auditing invalid tags, wrong nesting and missing closing tags. An HTML debugging game for a sharp eye for detail.

What you learn in this game

An HTML comment is wrapped in <!-- at the start and --> at the end. It can be multi-line, isn't rendered, but is still visible in view-source (don't put a password in it).

<audio> & <video> support multiple <source>s (different formats) + fallback content inside the tag for old browsers. controls shows the built-in play/pause UI.

<iframe> shows another page inside ours. Without limits, that's a security risk. Use sandbox to lock down its permissions.

Meta tags that are required in <head>: 1. <meta charset="UTF-8">: encoding (Indonesian characters render correctly) 2. <meta name="viewport">: mobile layout 3. <meta name="description">: the snippet in Google

An entity displays a reserved or special character: &lt; &gt; &amp; &quot; &nbsp; (non-breaking space) &copy; (©). There's NO backslash escape in HTML.

What the levels ask

  1. Pick the valid HTML comment.
  2. Pick the <audio> with a text fallback for old browsers.
  3. Pick the most safe & accessible YouTube iframe.
  4. Pick the meta viewport for the correct mobile layout.
  5. How do you show the symbol < as text in HTML?
  6. Pick the video with Indonesian captions.
  7. Pick the meta for a link preview on WhatsApp/Facebook.
  8. Embed a Google map. Which fits best?
  9. How to hide HTML code from production for a while.
  10. Make sure "Rp 100.000" isn't split across different lines.