How to add CSS styles Styles to Elements with Particular
Attributes?
Answer / swapna
The style rule below will match all input elements that has
a type attribute with a value of "text"
Input[type="text"] {background-color: blue}
id Selector
Defining styles for HTML elements with the id selector. The
id selector is defined as a #.
The style defined below will effect the element that has an
id attribute with a value of "green? ie., id=?green?
Ex: #green {color: green}
The style rule below will match the p element that has an
id with a value of "para1? ie., <p id=?para1?>
p#para1
{
text-align: center;
color: red
}
Do NOT start a class name or ID name with a number
| Is This Answer Correct ? | 3 Yes | 0 No |
Can we have this pattern implemented using static class?
What are some of your favorite designs in apps and websites?
Is singleton bean thread safe?
What is the use of such a class?
Why should we not use singleton pattern?
Using any system, product, or service your organization provides, identify the human system roles for the product.
What are the examples of the behavioral design patterns?
. What makes rival companies better or worse than us in terms of UI UX?
What is synchronizer token pattern?
What are the design patterns you know explain?
What is onion architecture?
What are the types of design patterns?