[thelist] CSS selectors

Alvaro Medina incomt65 at hotpop.com
Wed Feb 25 13:56:05 CST 2004

Hello, this may be a dumb question but anyway I have this little doubt : what is the difference between

.someclass { }
anytag.someclass { }

? I mean it for practical matters. I know the first could be assigned to any tag, as the second is just for it; then, could one declare

div.someclass { }
p.someclass { }

and so on? Is there a difference? Will the agent recognize it as 2 different classes? and whats the point, since one could declare different classes names to different tags?

Thanks in advance. Regards,

Alvaro Medina G.
incomt65 at hotpop.com
Santiago, Chile

More information about the thelist mailing list