Basic and Advance CSS Examples and Concepts Question:
Download Job Interview Questions and Answers PDF
What Is a Contextual Selector in CSS?
Answer:
A contextual selector selects a HTML tag that is nested inside another specified tag. Contextual selectors are specified with two tags separated with a space like (outer_tag inner_tag). For example, the following CSS definition uses a contextual selector:
/* set paragraph inside a table to use arial font family */
FORM P {font-family: arial}
/* set paragraph inside a table to use arial font family */
FORM P {font-family: arial}
Download Cascading Style Sheet CSS Interview Questions And Answers
PDF
Previous Question | Next Question |
What Is a ID Selector in CSS? | What Is a Group Selector in CSS? |