Is there a good reason for this? Lame question, but I just wondered if there was a reason why.
To comment in CSS, simply place your plain text inside /* */ marks. This tells the browser that they are notes and should not be rendered on the front end.
The /* */ comment syntax is used for both single and multiline comments. There is no other way to specify comments in external style sheets. However, when using the <style> element, you may use <!
CSS allows only multi-line comments. In Aptana 3 just select a region you would like to comment out and use ctrl + shift + / .
The stuff inside the /* */ marks are CSS comments. This allows you to enter notes into CSS that will not be interpreted.
Because the specification allows for /**/ but not // :)
Seriously, though, CSS treats newlines like all other whitespace, and would not be able to determine the end of the comment without a terminating delimiter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With