What are the different types of Selectors in CSS?

Answer Posted / hrpynux@gmail.com

Simple selectors (select elements based on name, id, class)
Combinator selectors (select elements based on a specific relationship between them)
Pseudo-class selectors (select elements based on a certain state)
Pseudo-elements selectors (select and style a part of an element)
Attribute selectors (select elements based on an attribute or attribute value)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you vertically align text?

292


What are normal margins?

295


What does an asterisk mean in css?

334


Why important is used in css?

302


What is css attr() funtion?

336






Explain css3 selectors.

284


How do you represent a class in css?

291


What is the difference between class selectors and id selectors?

309


What are the difference between margin & padding?

302


Is box sizing inherited?

301


How to align image vertically in a division which spans vertically in the whole webpage?

296


What are the different parts of a css style rule?

297


What are the different modules used in the current version of css?

360


What will happen if we will use floats across the page with 100% width?

298


What is comma in css?

306