|
INTERVIEW QUESTIONS
WEB
CSS
DETAILS
Question: What is attribute selector?
Answer: Attribute selector is a selector defined by 1) the attribute set to element(s), 2) the attribute and value(s), 3) the attribute and value parts:
1a) A[title] {text-decoration: underline} All A elements containing the TITLE attribute will be underlined
1b) A[class=name] {text-decoration: underline} The A elements classed as 'name' will be underlined
2) A[title="attribute element"] {text-decoration: underline} The A elements containing the TITLE attribute with a value that is an exact match of the specified value, which in this example is 'attribute element', will be underlined
3) A[title~="attribute"] {text-decoration: underline} The A elements containing the TITLE attribute with a value containing the specified word, which in this example is 'attribute', will be underlined
|
|
|
Category |
CSS Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7811 users |
Added on |
9/4/2014 |
Views |
65792 |
Rate it! |
|
|
Question:
What is attribute selector?
Answer:
Attribute selector is a selector defined by 1) the attribute set to element(s), 2) the attribute and value(s), 3) the attribute and value parts:
1a) A[title] {text-decoration: underline} All A elements containing the TITLE attribute will be underlined
1b) A[class=name] {text-decoration: underline} The A elements classed as 'name' will be underlined
2) A[title="attribute element"] {text-decoration: underline} The A elements containing the TITLE attribute with a value that is an exact match of the specified value, which in this example is 'attribute element', will be underlined
3) A[title~="attribute"] {text-decoration: underline} The A elements containing the TITLE attribute with a value containing the specified word, which in this example is 'attribute', will be underlined Source: CoolInterview.com
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.
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All CSS Interview Questions & Answers - Exam Mode /
Learning Mode
|