Top Features of Ultralingua Grammatica German Explained

Written by

in

What to Do When HTML Comments Are Not Working HTML comments are a great way to hide notes in your code. But sometimes, they do not work right and show up on your actual web page instead.

If you see on your live site, your browser is not reading them as comments. Here is how to fix this common coding problem. Check the Syntax

The most common reason comments fail is a simple typo. HTML comments must use a very specific structure. Open with four characters: Use to end.

Do not use extra dashes: Avoid putting double dashes inside the comment text. Watch Out for Hidden Traps

Even if your code looks correct, a few hidden mistakes can break your comments.

Wrong file type: HTML comments only work in files that end in .html or .htm.

Inside style tags: Do not use HTML comments inside