Comments in CSS
body {
font-size: 62.5% /* 1em = 10px */
}
The stuff inside the /* */ marks are CSS comments. This allows you to enter notes into CSS that will not be interpreted. In this case, this comment lets someone reading the CSS file know that that particular line of CSS was intended to allow for using ems to set font size later in the CSS in a more intuitive base 10 way.
sadasdasd
Good documents Thank u….
Great for me..
Elaborating..
/*
* === MAJOR SECTION HEADING ===
*/
/*
* — Minor Section Heading —
*/
I prefer comment to appear this way, but everyone is different how they comment. One this thing is for sure. You can never comment too much! (as they stripped anyhow in css compression).
thank u very much… that’s help me
I have two little (newbie) questions:
1. Are comments still the same in CSS3?
2. What about comments in html5?
Yes, of course. CSS3 is CSS.
You have to include them between . Just like plain old HTML or XML.
2) Whooops… I meant between <!– and –>.
In SCSS, you can use:
// commentor:
/CommentStill a comment
still a comment/
Thanks “me, I’m working with scss ^^
How is this Comment Preview possible below this? Is this a plugin in WordPress? So cool.
I don’t like the fact that you need 4 characters to comment a single instructions on a line! It would have been better to use something simpler in addition to the /* */. For example, SQL uses two consecutive dashes like — which is very easy to use, another one is a single quote at the beginning of the line like VB. Anyway, this is still better than the most silly comment syntax for HTML.