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 |
What are the differences between the design patterns and the framework?
How would you improve the UX design of our product?
What is the concurrency design pattern?
Explain the singleton, facade, or handle class design pattern?
What do you do to ensure that your design is carried out perfectly from your end?
Quartus II software version 6.0 is available for which operating systems (OS)?
Design the Factory pattern and What is its application ?
What design pattern wrapper classes implement?
Can we inherit singleton class?
What non-visual coding tools are available for web design?
Tell us the kind of features that you add to your design.
Are you using singleton in your code?