0

In the class selector we don't need to write <div> tag M I right ??

class selector

22nd Jan 2017, 11:02 AM
Ashish Jaiswal
Ashish Jaiswal - avatar
2 Respostas
+ 2
You're right. In css you may use tag selector eg. span {} class selector .classname {} or id sector #elemenid {} you may also "combine": span.classname {} applys to <span class="classname"> but not <div class="classname"> chaining: div span .classname {} every classname that are within div and span elements and so on.
22nd Jan 2017, 12:35 PM
Jani Sinkkonen
Jani Sinkkonen - avatar
+ 1
That was just a quick one: see more about css selectors here http://www.w3schools.com/cssref/css_selectors.asp
22nd Jan 2017, 12:43 PM
Jani Sinkkonen
Jani Sinkkonen - avatar