Question:
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). Source: CoolInterview.com
CSS selector is nothing but the HTML tag names to which the style should be applied. Selector can be any valid HTML tag such as <a>, <p> <li>, <ul>, <table>,<td> etc.... Source: CoolInterview.com
Answered by: Anup | Date: 4/14/2010
| Contact Anup
Selector is the name to define or give the style to the content.There are thw tpes of selectors.These are ID Selector and the second is Class selector.The ID selector is defined by '#' mark and the Class selector define by '.' mark.ID can use only once in a page but in class you can use more then one time in the page. Source: CoolInterview.com
Answered by: Golak Jena | Date: 5/7/2010
| Contact Golak Jena
The selector is normally the HTML element you want to style. Source: CoolInterview.com
Answered by: vamshi | Date: 6/18/2010
| Contact vamshi
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|