Explain what a descendant selector is and give an example of its use.
What will be an ideal response?
A descendant selector is a selector nested within another selector. For example, suppose that you want text that is contained in the nested elements from the previous paragraph to appear as maroon. To achieve this effect, you could create a rule for either the strong selector or the em selector. However, there may be a case when you want to apply a style to only the em element that is nested inside a strong element. In that case, you would create the following style:
strong em {
color: maroon;
}
There is only a space separating the selectors. The comma is used between selectors when the style applies to all selectors in the group. The space is used, without a comma, to indicate descendant selectors. This descendant selector specifies that whenever the code for an em element is nested within a strong element, the text appears in maroon. In all other instances where the em element is used by itself, the em text would continue to appear only in italics, as it normally would, unless you created a different style for the em element. Similarly, strong text by itself would continue to appear only as bold text, but not in maroon.
You might also like to view...
What are the ports for the BOOTP server and BOOTP client?
a. BOOTP server 68, BOOTP client 67 b. BOOTP server 21, BOOTP client 22 c. BOOTP server 67, BOOTP client 68 d. None of these answers is correct.
In query criteria, a(n) ________ character can be used to match any combination of letters or characters
Fill in the blank(s) with correct word
You would use a footnote to display information at the bottom of each page
Indicate whether the statement is true or false
A(n) query function contains a collection of statements that can be referenced throughout the query document.
Answer the following statement true (T) or false (F)