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

What are css3 media queries?

372


What is contextual selector?

368


Which css3 property is used to center text?

389


What is overflow css?

353


What is responsiveness?

347






What are the advantages / disadvantages of various style methods?

351


Which property of a hyperlink signifies an element that currently has the user's mouse pointer hovering over it?

407


Explain the concept of pseudo-elements in css.

325


What are the features of css3?

346


What is the purpose of style sheets?

365


Explain what are image sprites?

357


What is the use of hover?

363


What is the purpose of in measurement unit?

393


How do you clear a float in css?

385


Can you have more than one nav tag?

323