What Is a Mixed Selector in CSS?
Submitted by: AdministratorA mixed selector is a selector that uses a combination of all other selectors. The following CSS shows some good examples:
/* selects <p class="quote"> tags */
P.quote {font-style: italic}
/* selects <p class="quote" id="onSale"> tags */
P.quote#onSale {color: red}
/* selects <p class=quote id=onSale> tags inside <table> */
TABLE P.quote#onSale {background-color: red}
/* selects <pre class=quote id=onSale> tags inside <table>
and <pre id="onSale"> tags */
TABLE P.quote#onSale, PRE#onSale {background-color: red}
Submitted by: Administrator
/* selects <p class="quote"> tags */
P.quote {font-style: italic}
/* selects <p class="quote" id="onSale"> tags */
P.quote#onSale {color: red}
/* selects <p class=quote id=onSale> tags inside <table> */
TABLE P.quote#onSale {background-color: red}
/* selects <pre class=quote id=onSale> tags inside <table>
and <pre id="onSale"> tags */
TABLE P.quote#onSale, PRE#onSale {background-color: red}
Submitted by: Administrator
Read Online Cascading Style Sheet CSS Job Interview Questions And Answers
Top Cascading Style Sheet CSS Questions
☺ | How To Set Different Text Fonts Inside Tables in CSS? |
☺ | What Is the HTML Element Formatting Model in CSS? |
☺ | What Is Inline Element in CSS? |
☺ | Hot To Specify the Content Box Size of a Block Element? |
☺ | What Are the Formatting Behaviors of HTML Elements? |
Top Top World Wide Web Categories
☺ | Cascading Style Sheet CSS Interview Questions. |
☺ | HTML5 Interview Questions. |
☺ | Basic Internet Interview Questions. |
☺ | Domain Name System (DNS) Interview Questions. |
☺ | JavaScript Interview Questions. |