user9999 user9999 - 1 year ago 84
HTML Question

commenting internal css code is not working

I am trying to comment internal css code as shown in the below image but it's not working for me. If I comment this way, my code is still working in thesite.

Is this is the right way to put comments for internal css code?

I tried

/* */
but it didn't work for me

enter image description here


use /* */ not <!-- -->

The second type is HTML not CSS. The use of HTML comments is a hack having to do with some Microsoft browser and does not work as you might expect it to do.

Older answer