Explain the three main ways to target elements.

Answer Posted / hrpynux@gmail.com

Type selectors (e.g. h1 ) and pseudo-elements (e.g. ::before )
Class selectors (e.g. . nav-item ), attributes selectors (e.g. [type="radio"] ) and pseudo-classes (e.g. :hover )
ID selectors (e.g. #example )

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is flex shrink?

299


How do you make the text bold?

411


What is the difference between descendant and child selectors?

282


What is text align justify?

295


What is css hanging-punctuation property?

273






What is css script?

308


What are the three types of css?

266


What is box shadow and how it is used?

272


How to select all paragraph elements with a lang attribute?

372


What is a type selector?

281


Which among the following is more precedent: CSS properties or HTML procedures?

451


What is css1 css2 css3?

275


What is selector specificity?

296


Which property is used to increase or decrease how bold or light a font appears?

382


What is css grid system?

291