Sometime around Thu, 16 Oct 2003 02:16:05 GMT, Samuël van Laere is reported
to have stated:
Ok so:
#something .label {
color: #000;
}
is an ID despite of the dot before the 'label' ?
No. <pedantic>It is a style rule</pedantic>.
It means apply this
rule to any element with class="label" that is a child of an element with
id="something".
If that is so then a dot isn't needed.
It depends whether you are trying to apply the rule to an element with
class="label" or a label element.
The validator doesn't seem to care either,
Both are valid, so it shouldn't.
so what ever i use it seems to be correct anyway.
Valid, yes. Correct no. As above, it depends what you are trying to do.
(Of course, if you have <label...class="label"> then either will work, but
that would seem a little pointless).