HTML Comment Error: Why Your Comment Code is Showing Up The title you provided contains a common coding mistake that breaks web pages. ”,false,false]–> Not working attempts to close an HTML comment that was never properly opened.
Leaking Text: Because the browser gets confused, it displays “Not working” directly on the screen as plain text.
Unclosed Comment Open: The Use code with caution. Common Execution Rules
Opening tag: Always use (two dashes, greater-than).
No spaces inside brackets: Do not put spaces between the characters of the opening or closing tags (e.g., < !– will break).
No nested comments: You cannot put a comment inside another comment. 🔧 How to Fix Your Code
Depending on what you are trying to achieve, here is how you should structure your code. Option 1: If you want to comment out the text
If you want to completely hide “Not working” and the random data from the user, wrap the entire string inside one clean comment: Use code with caution. Option 2: If you want to show the text safely
If “Not working” is an error message you actually want your website visitors to see, separate your data logic from your HTML text:
Not working
Use code with caution.
To help me debug this faster, could you share what language you are writing in (HTML, JavaScript, or a framework like React)? Saved time Comprehensive Inappropriate Not working
A copy of this chat, including the images and video, will be included with your feedback A copy of this chat will be included with your feedback
Your feedback will include a copy of this chat and the image from your search
Your feedback will include a copy of this chat, any links you shared, and the image from your search.
Thanks for letting us know
Google may use account and system data to understand your feedback and improve our services, subject to our Privacy Policy and Terms of Service. For legal issues, make a legal removal request.