Tool to read and extract HTML comments from source code or web page automatically (Javascript/CSS comments included)
HTML Comments - dCode
Tag(s) : Informatics
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
A comment in HTML is a message indicated between tags <!-- and --> which is intended for a reader of the HTML source code of a web page.
Example: <!-- HTML comment -->
A Javascript comment is a message indicated between the characters '/ *' and '* /' or following the characters // in a source code in Javascript.
Example: /* Javascript comment 1 */
Example: // Javascript comment 2
A CSS comment is a message indicated between the characters '/ *' and '* /' in a style sheet source code.
Example: /* CSS comment */
Comments are normally deleted when the pages are put into production, and intended only for people developing them, detecting them allows them to be deleted.
Comments can be a way to leave a hidden message, because they are not visible on a web page, at least not visible without accessing the source code.
dCode retains ownership of the "HTML Comments" source code. Any algorithm for the "HTML Comments" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "HTML Comments" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "HTML Comments" or any other element are not public (except explicit open source licence like Creative Commons). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "HTML Comments" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source.
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: HTML Comments on dCode.fr [online website], retrieved on 2025-04-16,