InterviewSolution
| 1. |
What Is Selector? |
|
Answer» CSS selector is equivalent of HTML ELEMENT(s). It is a string identifying to which element(s) the CORRESPONDING declaration(s) will apply and as such the link between the HTML DOCUMENT and the STYLE sheet. For example in P {text-indent: 10pt} the selector is P and is called type selector as it matches all instances of this element type in the document. in P, UL {text-indent: 10pt} the selector is P and UL (see GROUPING); in .class {text-indent: 10pt} the selector is .class (see class selector). CSS selector is equivalent of HTML element(s). It is a string identifying to which element(s) the corresponding declaration(s) will apply and as such the link between the HTML document and the style sheet. For example in P {text-indent: 10pt} the selector is P and is called type selector as it matches all instances of this element type in the document. in P, UL {text-indent: 10pt} the selector is P and UL (see grouping); in .class {text-indent: 10pt} the selector is .class (see class selector). |
|