[SalesForce] the best way to add comment in Visualforce Code

I am working on a existing VF code and added a comment like this, it appears on the page.

// Bla Bla Bla

I changed the comment to this, but receive the below error.

<! Bla Bla Bla> 

"The content of elements must consist of well-formed character data or

What is the proper syntax for adding a comment to a visualforce page?

Best Answer

You should use the XML comment syntax, which is:

<!-- This is a comment -->
Related Topic